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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,415
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,127,147
Messages
5,623,008
Members
415,946
Latest member
bellerom

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