Count Unique against two variables

BeerBeer101

New Member
Joined
Dec 29, 2021
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hi again all, I tried to install the XL2BB - without success. I am expanding a formula that counts unique. Sorry, have to photo again, but will provide the formula i am working off. here we go:
1672936063360.png


so the formula I am currently using is:
=COUNTA(UNIQUE(FILTER($B$4:$B$15,$C$4:$C$15=$F$4)))

but i need it to add column D as the counter. essentially G4 should return 3 in my test (as G5, H4/5 as well). i've gone six ways to sunday on the formula...
again, your help is amazing - thanks!
 

Attachments

  • 1672936008165.png
    1672936008165.png
    93.6 KB · Views: 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
=COUNTA(UNIQUE(FILTER($B$4:$B$15,($C$4:$C$15=$F$4)*($D$4:$D$15=$G$2)))
 
Upvote 0
Solution
=COUNTA(UNIQUE(FILTER($B$4:$B$15,($C$4:$C$15=$F$4)*($D$4:$D$15=$G$2)))
There was a slight type... changed to:
=COUNTA(UNIQUE(FILTER($B$4:$B$15,($C$4:$C$15=$F$4)*($D$4:$D$15=$G$2))))
missing one bracket at the end.
 
Upvote 0
I would recommend using
Excel Formula:
=ROWS(UNIQUE(FILTER($B$4:$B$15,($C$4:$C$15=$F$4)*($D$4:$D$15=$G$2))))
Using Counta will return 1 even if nothing matches.
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,732
Members
449,093
Latest member
Mnur

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