You can shorten that to
=SUM((A1:A10="cow")*(B1:B10="brown"))
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Pete_UK" wrote in message
oups.com...
Try this array* formula:
=SUM(IF((A1:A10="cow")*(B1:B10="brown"),1,0))
* As this is an array formula, then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER rather than just
ENTER. If you do this correctly then Excel will wrap curly braces { }
around the formula - you must not type these yourself.
Adjust the ranges to suit your data (both should be the same size).
Hope this helps.
Pete
walkerdayle wrote:

Hello everyone,
I'm trying to count data based upon two columns of data that are text
based. For example:
Column A Column B
- dog blue
- cat Brown
- cow Brown
- cow White
- cat Black
I'd like to know how I can count how many Cow's are brown. I'm sure
there's a nested CountIF statement in there somewhere.
Thanks for any help!
Anita
--
walkerdayle
------------------------------------------------------------------------
walkerdayle's Profile:
http://www.excelforum.com/member.php...o&userid=10021
View this thread:
http://www.excelforum.com/showthread...hreadid=573823