=SUMPRODUCT(--(B1:B100="Apple"),--(A1:A100="F"))
If you are using Excel 2007
=SUMPRODUCT(--(B:B="Apple"),--(A:A="F"))
or
=COUNTIFS(A:A,"F",B:B,"Apple")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
"Fgbdrum" wrote in message
...
Hi-
In principal, I'd like to do a COUNTIF statement within an IF statement.
Can't seem to get it to work just right. Here's my sheet:
Column A Column B
A APPLE
B ORANGE
F APPLE
I'd like the formula to say:
If column B equals APPLE, count column A if it equals F.
This would give me a return of 1.
Would appreciate any help on this. Thank you.