Counting unique values

Tencijup

New Member
Joined
Feb 10, 2012
Messages
5
Hi,

I would really appreciate if you could help me.
I am trying to count the unique values in a column based on possible duplicate entries in another column. I apologize for not being able to attach a file/picture of the data but it look like this.
A1 = "Customer"
A2:A9 has values: A,A,B,C,D,E,E,F
B1= "Exclusion flags"
B2:B9 has the value ("YES") only in B2 and B4. The rest of the B column is blank.
I am trying to count the number of flags in the B column based on possible duplicates in col A. I am having a really hard time as the duplicate values in col A may be either flagged "YES" or blank.
Thank you very much for your help.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi,

I would really appreciate if you could help me.
I am trying to count the unique values in a column based on possible duplicate entries in another column. I apologize for not being able to attach a file/picture of the data but it look like this.
A1 = "Customer"
A2:A9 has values: A,A,B,C,D,E,E,F
B1= "Exclusion flags"
B2:B9 has the value ("YES") only in B2 and B4. The rest of the B column is blank.
I am trying to count the number of flags in the B column based on possible duplicates in col A. I am having a really hard time as the duplicate values in col A may be either flagged "YES" or blank.
Thank you very much for your help.
Try this array formula**:

=SUM(IF(FREQUENCY(IF(B2:B9="Yes",MATCH(A2:A9,A2:A9,0)),ROW(A2:A9)-ROW(A2)+1),1))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top