Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dolpphinv4
 
Posts: n/a
Default Finding unique values with Criterias

Hi,

i used the formula

=SUM(IF(FREQUENCY(IF(LEN(Range1)0,MATCH
(Range1,Range1,0),""),
IF(LEN(Range1)0,MATCH(Range1,Range1,0),""))0,1))

and it worked! thanks...however, i need somehow change
the fomula such that it gives the number of unique
entries in range A if the equivalent value in B is
not "XI"....ie, in the example below, the answer I want
should be 3 (Alice and betty....alice should still be
counted...Candy shld be eliminated coz Candy appears
twice but twice the RangeB value is XI)

Is this possible?


RangeA RangeB
alice OK
Betty OK
Candy XI
Betty OK
alice XI
Denise OK
Candy XI

Thanks!
Val

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=SUM(IF(FREQUENCY(IF((LEN(A1:A7)0)*(B1:B7<"XI"), MATCH(A1:A7,A1:A7,0)),I
F((LEN(A1:A7)0)*(B1:B7<"XI"),MATCH(A1:A7,A1:A7,0 )))0,1,0))

OR

=SUM(IF(FREQUENCY(IF((LEN(A1:A7)0)*(B1:B7<"XI"), MATCH(A1:A7,A1:A7,0)),R
OW(INDIRECT("1:"&ROWS(A1:A7))))0,1,0))

Both of these formulas need to be confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
"dolpphinv4" wrote:

Hi,

i used the formula

=SUM(IF(FREQUENCY(IF(LEN(Range1)0,MATCH
(Range1,Range1,0),""),
IF(LEN(Range1)0,MATCH(Range1,Range1,0),""))0,1))

and it worked! thanks...however, i need somehow change
the fomula such that it gives the number of unique
entries in range A if the equivalent value in B is
not "XI"....ie, in the example below, the answer I want
should be 3 (Alice and betty....alice should still be
counted...Candy shld be eliminated coz Candy appears
twice but twice the RangeB value is XI)

Is this possible?


RangeA RangeB
alice OK
Betty OK
Candy XI
Betty OK
alice XI
Denise OK
Candy XI

Thanks!
Val

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
Counting unique entries in column A but only if specific values appear in columns B and C markx Excel Worksheet Functions 1 February 10th 05 11:52 AM
Finding Unique Values in Column Kirk P. Excel Discussion (Misc queries) 1 January 25th 05 02:01 PM
Count number of Unique values Alan Excel Worksheet Functions 4 January 6th 05 08:05 PM
How do I get unique values from 2 columns? akmccarthy Excel Discussion (Misc queries) 2 December 13th 04 10:47 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 05:48 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"