COUNTIF or SUMPRODUCT
Try this:
=SUMPRODUCT(--(D2:D4000="white"),--(E2:E4000="sgt"),--(G2:G4000="male"))
Better to use cells to hold the criteria:
A1 = white
B1 = sgt
C1 = male
=SUMPRODUCT(--(D2:D4000=A1),--(E2:E4000=B1),--(G2:G4000=C1))
--
Biff
Microsoft Excel MVP
"SFC Traver" wrote in message
...
Not sure which way to go on this. I have three columns (Race, Rank,
Gender)
and I need to count how many white,sgt,males there are and put it in one
cell
in another worksheet in the same book.
Have search the board and everything I've tried has not worked. If you
could help me with this, I can replace what I need.
Race column is D2:D4000
Rank Column is E2:E4000
Gender Column is G2:G4000
Thanks!
Dan
|