Count unique values based on critera with match in named range

ausswe

New Member
Joined
Feb 19, 2013
Messages
48
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,
I'm trying to figure out a way to count the unique number of values based on two criteria, where one criteria is dependent on a list (named range).

Excel Formula:
=SUM(--(LEN(UNIQUE(FILTER(Table1[ID];(Table1[MONTH]=$S$1)*(Table1[VALUES]=NamedRange);"")))>0))

What would the best way be to count the unique IDs for one month if ANY of the values in the table 'VALUES' match the entries in the named range ('NamedRange' in the formula).

Thanks in advance!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=SUM(--(LEN(UNIQUE(FILTER(Table1[ID];(Table1[MONTH]=$S$1)*(isnumber(xmatch(Table1[VALUES];NamedRange)));"")))>0))
 
Upvote 0
Solution
Did not see that one coming! :)

Thank you so much Fluff - it worked!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,225,349
Messages
6,184,437
Members
453,233
Latest member
bgmb

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