Solved: Excel 2007: Can I use multiple criteria for Countif?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

noisette

Thread Starter
Joined
May 12, 2009
Messages
10
Hi! I tried using Countif but without any luck and am not sure what will actually. I need Excel to look up data in Column E, count any instances of "Tree" and then look in Columns K to M any count instances of "c" where E = "Tree". For example:

Column E
Tree
Plant
Flower
Tree
Tree

Column K
c
c
b
b
g

Column L
b
b
g
b
g

Column M
b
b
c
b
c

I would be looking for Excel to return "2" as there are two Trees in Column E that have a 'value' of c in columns K to M. Am I missing an obvious solution here?

Many thanks as always for any advice!
 

etaf

Wayne
Moderator
Joined
Oct 2, 2003
Messages
65,454
this should work
=SUMPRODUCT(($E$1:$E$100="tree")*($K$1:$O$100="c"))
OR

=COUNT(IF((E1:E100="tree")*(K1:O100="c"),1))
as an array formula - after adding to the formula bar - use contol+shift+enter to change to an array formula } will appear around the formula

see attached spreadsheet
with both formulas in D14 and D16

EDIT - while working on the solution, you edited the post - so my data does not match yours - the answers the same though
 

Attachments

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top