Need to count unique values based on another column

PatrickArnold16

New Member
Joined
Oct 19, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,
I am trying to get a formula where i am trying to count the number or unique values in Column A based upon a Yes value in Column K.

I can get the unique in column a but cant seem to combine them into 1 formula

Anyone have any suggestions.
Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Book1
ABCD
1AB
2AYes2
3AYes
4ANo
5BNo
6BYes
7BNo
8BYes
9CNo
10CNo
11CNo
Sheet1
Cell Formulas
RangeFormula
D2D2=COUNTA(UNIQUE(FILTER(Table1[A],Table1[B]="Yes")))
 
Upvote 0
Another option that will handle no Yes values in col K
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(A2:A1000,K2:K1000="yes"))),0)
 
Upvote 0

Forum statistics

Threads
1,214,635
Messages
6,120,660
Members
448,975
Latest member
sweeberry

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