Counting Unique Values from one Column and determining the count of another column based on that

Gagnrath

New Member
Joined
Apr 4, 2018
Messages
2
Hello,

I was recently trying to determine a way to count the unique values of one column and use that to determine the count of Yes Answers from another column based on that.

Ex.

Column A|Column B
00000 |Yes
00001 |Yes
00000 |No

So, I wanted to take the unique Values of Column A and determine narrow down the Yes Answers from Column B to determine the sum of them.
So in the example, there would only be 2 as the sum of these. There may also be some blank value in the First Column as well.

I tried incorporating this into my formula as it provides all the quantity of Unique values of all of Column A
=SUM(IF(FREQUENCY(MATCH(B2:B1000,B2:B1000,0),MATCH(B2:B1000,B2:B1000,0))>0,1))

Any help on this is welcome as I have tried several attempts and all have failed.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
See if this works for you.
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCD
1
200000Yes
300001Yes2
400000No
5
600000Yes
7
Sheet
 
Upvote 0
You're welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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