Iain,
Another thought, is the text in the column exactly A&E and Admit to
Hospital. Try this variation
=SUMPRODUCT(--(ISNUMBER(FIND("A&E",A1:A100))),--(ISNUMBER(FIND("Admit to
Hospital",B1:B100))))
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Iain Halder" wrote in message
...
Bob,
Thank you for replying!
I tried this as you suggested but the cells came up blank.
The comparison is not between numbers but between texts
i.e. =sumproduct(--(A1:A100="A&E"),--(B1:B100="Admit to Hospital"))
The idea is to do a count of people who attend A&E and who are then
admitted to the hospital. There are many other options in these two
columns but I need to be able to quickly count these particular two.
Am I doing this wrong in some way?
Iain Halder
On Sat, 20 Nov 2004 20:24:53 -0000, "Bob Phillips"
wrote:
=SUMPRODUCT(--(A1:A100="value1"),--(B1:B100="value2"))
Rescued Cats & Kittens Needing Homes
'o'< www.celiahammond.org 'o'<
'o'< www.cat77.org.uk 'o'<