Counting with conditions in Excel

D

Dave Goatley

I have a small spreadsheet and want to Count the number of
times a word or phrase in one column co-incides with a
word or phrase in an adjoining column.

eg.
A B
up left
up left
down left
down right

How many times does down and left occur in the range A1-B4?
 
J

JulieD

alternatively use the SUMPRODUCT function

=SUMPRODUCT((A1:A4="down")*(B1:B4="left"))

Cheers
JulieD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top