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
=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.
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

=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: