Count ifs + unique value?

Dagmarh

New member
Joined
Mar 25, 2017
Messages
3
Reaction score
0
Points
0
Hello,
I seem to be stuck on this formula ... trying to get a number of rooms per room category/per departure city - under Room column, I have the room # which are duplicated for double rooms - how do I make it so it doesn't count the duplicates - ei "Mater Double - Kelowna" should be only 1 room:

Count if question.jpg

also having trouble with the "Filtered # of rooms" ... for the Total # of Rooms, I'm using this formula: =SUMPRODUCT(1/COUNTIF(A6:A14,A6:A14)) - how do I modify that to "react" to the Table Filter.

Thank you!!
 
Test file attached

attached is the test file.
thanks!
 

Attachments

  • Test.xlsx
    11.4 KB · Views: 13
How about this in B20 copied across and down?

=(COUNTIFS($J$6:$J$13,$A20,$K$6:$K$13,B$19,$I$6:$I$13,"DBL")/2)+COUNTIFS($J$6:$J$13,$A20,$K$6:$K$13,B$19,$I$6:$I$13,"SGL")
 
Back
Top