Unique Count with Filter

davidhall80

Well-known Member
Joined
Jul 8, 2006
Messages
663
Hello All

I am trying to come up with a formula for Unique Values in a certain column with a filter in a different Column.
For Example: A Unique Count of items in Column A if Column B = 1....So the result should be 3. Thank You Very Much

ColumnA............ColumnB
1............................0
1............................0
2............................0
2............................0
2............................0
5............................1
5............................0
10..........................1
15..........................1
15..........................0
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
David, I'm a little confused here. If the result you want is 3, isn't that just a COUNTIF() on Column B for a value of 1? Do you really mean that you want a result of 30 (i.e., the sum of values from Column A where Column B = 1)?

If you do mean the latter, and assuming your sample range shown occupies A1:B10, use this:

=SUMIF(B1:B10,1,A1:A10)
 
Last edited:
Upvote 0
Hi ,

Try this array formula , to be entered using CTRL SHIFT ENTER :

=SUM(IF($B$2:$B$11 = 1, 1/COUNTIFS($B$2:$B$11, 1, $A$2:$A$11, $A$2:$A$11)))
 
Upvote 0

Forum statistics

Threads
1,215,563
Messages
6,125,550
Members
449,237
Latest member
Chase S

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