Count same text from different rows

  • Thread starter Thread starter kashish
  • Start date Start date
K

kashish

I have database like given below

A B C D E
Q2 a c c a
Q2 b a a a
Q1 d a a
Q2 c a
Q1 d a b a

I want to count how many "a" are there in different column for Q1, or how
many "c" are there in different column for Q2. (Q1 & Q2 are only in A column.)
 
Try this

=SUMPRODUCT((A1:A20="Q2")*(B1:E20="a"))

Cahnge the criteria for your other counts

Mike
 

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

Similar Threads

Complex Pivot Table Function 1
Deleting Rows in A Pattern 1
Sumproduct formula 3
pivot table - show ALL detail? 3
I have Text in a Colunm but want to sort ... 4
SUMPRODUCT Formula 6
3 out of 5? 5
Insert Blank Rows 5

Back
Top