counting the unique values

Schubby10

New Member
Joined
Aug 16, 2018
Messages
33
Hey guys,

I have drawn out my unique names and I would like to count them if a certain category says yes or no.

I have my unique values in B2 and my yes or no in F2. How do I could all my yeses and all my nos of the unique values?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Do you mean that your yes and no values are in column F ?
If so, you could count them with
Code:
=COUNTIF(F:F,"YES")
anywere on a blank space. And
Code:
=COUNTIF(F:F,"NO")
for the other count.
 
Upvote 0
Hi,

I'm also not sure if I understood your question correctly - but if you want to count the number of unique values that you have in column B, but only for those rows where column F = "Yes", then you can use the following Array formula (confirm with Ctrl+Shift+Enter):
=SUMPRODUCT(IFERROR(1/IF(F2:F100="Yes",COUNTIFS($F$2:$F$100,"Yes",$B$2:$B$100,B2:B100)),0))
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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