#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Match & array

Hi,

I need help in setting up a formula that will compare two columns and return
a count of cells in column A that are not in column B. Making this a bit
more challenging, a cell beside it must meet a criteria.

Example:
assuming AB and CD are two period's worth of data

Column A Column B Column C and
Column D
Carmen Dallas Carmen
Dallas
Jenny Houston Jenny
Houston
Mike Ohio Terry
Ohio
Terry Dallas


I'd like a count of all those people in Dallas that are in column A, but are
no longer in Dallas in column D

How would it work?

Thanks,
Carmen
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Match & array

using your example data

=SUMPRODUCT(--(ISNA(MATCH(A1:A4&B1:B4,C1:C3&D1:D3,0))),--(B1:B4="dallas"))

gives me 1. it will count the people in column A who are in dallas and
either do not appear in column C or are in column C, but not in dallas. is
this what you're after?



"Carmen" wrote:

Hi,

I need help in setting up a formula that will compare two columns and return
a count of cells in column A that are not in column B. Making this a bit
more challenging, a cell beside it must meet a criteria.

Example:
assuming AB and CD are two period's worth of data

Column A Column B Column C and
Column D
Carmen Dallas Carmen
Dallas
Jenny Houston Jenny
Houston
Mike Ohio Terry
Ohio
Terry Dallas


I'd like a count of all those people in Dallas that are in column A, but are
no longer in Dallas in column D

How would it work?

Thanks,
Carmen

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Match & array

or, if you want the people in Col A who are in dallas and also appear in Col
C, but are not longer in dallas, you could try:


=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A4,C1:C3,0))),--(ISNA(MATCH(A1:A4&B1:B4,C1:C3&D1:D3,0))),--(B1:B4="dallas"))

and it would exclude those who appear in Col A who are in Dallas, but don't
appear at all in Col C.


"JMB" wrote:

using your example data

=SUMPRODUCT(--(ISNA(MATCH(A1:A4&B1:B4,C1:C3&D1:D3,0))),--(B1:B4="dallas"))

gives me 1. it will count the people in column A who are in dallas and
either do not appear in column C or are in column C, but not in dallas. is
this what you're after?



"Carmen" wrote:

Hi,

I need help in setting up a formula that will compare two columns and return
a count of cells in column A that are not in column B. Making this a bit
more challenging, a cell beside it must meet a criteria.

Example:
assuming AB and CD are two period's worth of data

Column A Column B Column C and
Column D
Carmen Dallas Carmen
Dallas
Jenny Houston Jenny
Houston
Mike Ohio Terry
Ohio
Terry Dallas


I'd like a count of all those people in Dallas that are in column A, but are
no longer in Dallas in column D

How would it work?

Thanks,
Carmen

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
array match Mike S Excel Worksheet Functions 6 March 1st 07 03:04 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
match, lookup or array? edluver Excel Worksheet Functions 0 October 21st 06 07:46 PM
1:1 as the Array using the MATCH function Knot2Brite New Users to Excel 4 July 8th 06 10:31 AM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM


All times are GMT +1. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"