Countif Unique Text Value only based on multiple criteria

sfarr

New Member
Joined
Mar 28, 2015
Messages
2
I'm using Excel 2010. I know many of you will think this is very elementary question; however, I've tried and tried and cannot seem to get this to work.

I am trying to count the number of unique businesses (column A) which also meets the criteria of active status (in column G) and type of registration (in column F). I've got about 500 rows of data but trying to test on only 20 rows.

I've tried this :confused:

=SUMPRODUCT((F2:F20="Comm")*G2:G20="active")/IF(COUNTIFS(A2:A20,A2:A20,F2:F20,"Comm",G2:G20,"Comm")=0,1,COUNTIFS(A2:A20,A2:A20&"",F2:F20,"Comm",G2:G20,"active")))


It always seems to return a value that is 1 off. I'm very novice so any help and direction would be much appreciated. Thank you for taking time to address a problem that must seem elementary to many of you.
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
See if this works

=SUM(IFERROR(1/COUNTIFS(F2:F20,F2:F20,F2:F20,"Comm",G2:G20,G2:G20,G2:G20,"Active",A2:A20,A2:A20),0))

Array confirmed with shift ctrl enter.
 
Upvote 0
Jason,

I tried this with one set of criterion and I believe it works. I'll test again with another... but couldn't waste a minute before saying a most grateful thank you for taking the time to answer my post. You're stellar.
 
Upvote 0

Forum statistics

Threads
1,215,355
Messages
6,124,468
Members
449,163
Latest member
kshealy

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