=sumproduct((Col_D="Rehab")*(Col_E="Client was not admitted."))
Col_D, Col_E needs to be explicit ranges of equal size,
eg: D2100, E2:E100
And you can strap on more COUNTIF conditions beyond 2 conditions,
indicatively: =sumproduct((Cond1)*(Cond2)*(Cond3)*(Cond4))
--
Max
Singapore http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
=COUNTIFS(D$1$7,"Detox",E$1:E$7,"Client was admitted.")
If you are using 2003
=SUMPRODUCT(--(D$1$7=B$1),--(E$1:E$7=C$1))
where B1 contains "Detox" and C1 contains "Client was admitted." Both
without quotes. I could have used cell references in the 2007 formula, and
it is generally more flexible.