Count unique values against multiple lookups

gruntingmonkey

Active Member
Joined
Mar 6, 2008
Messages
434
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am looking for a formula that enables me to count the unique values in Column A (Reference) against the Institution and year (Columns B & C). I might be able to remove the Year section if this causes an issue.


1634206381917.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thanks, I have done that now. 2016 currently.
 
Upvote 0
Thanks for that.How about
Excel Formula:
=SUM(--(FREQUENCY(IF($B$3:$B$100=$F3,IF($C$3:$C$100=G$2,MATCH($A$3:$A$100,$A$3:$A$100,0))),ROW($A$3:$A$100)-ROW($A$3)+1)>0))
this needs to be confirmed with Ctrl Shift Enter, rather than just Enter.
 
Upvote 0
Solution
Thanks for this Fluff, it absolutely works, however, I have two columns of array formulas and 40k lines of data which is taking over 10-12 hours to compute. I was wondering if there was a way I could translate this into VBA for a swifter response? Or maybe add helper columns?
 
Upvote 0
It could be done with VBA, but it would not calculate automatically. However as that's a different question, you would need to start a new thread for it.
 
Upvote 0

Forum statistics

Threads
1,215,135
Messages
6,123,239
Members
449,093
Latest member
Vincent Khandagale

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