Count Unique values - multiple criteria with an OR condition

cortexnotion

Board Regular
Joined
Jan 22, 2020
Messages
137
Office Version
  1. 2013
Platform
  1. Windows
Hi All

I have the below formula working for counting unique values in column G with multiple criteria. I now need to increase the criteria in column L to 3 criteria. I have attempted the below but I clearly don't have the formatting right...

Many thanks!

VBA Code:
=SUMPRODUCT((L3:L1000={"INITIAL SUBMISSION","TEMPLATE CREATION","DATA COLLECTION"})*(M3:M1000="OVERDUE"),1/COUNTIFS(L3:L1000,L3:L1000,M3:M1000,M3:M1000,G3:G1000,G3:G1000))
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,405
Office Version
  1. 365
Platform
  1. Windows
Any empty cells in any of those columns? Without test data, I don't remember if empty cells cause incorrect results or errors but I do remember them being a problem.

Also, it would depend on what type of 'unique' count you need. In this simple example, should the result be 1 or 2?
Book1
AB
1Column GColumn L
2aInitial
3aInitial
4aTemplate
5aTemplate
Sheet1
 

Watch MrExcel Video

Forum statistics

Threads
1,126,994
Messages
5,622,053
Members
415,875
Latest member
Tarali

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
Top