countif function

S

susan

Need to count alpha letters in a range.
"PP" and "VD". having problems entering criteria, missing
something.
Using =countif(h3:t3,"PP")this works but need to add
additional letter codes to count. How do I write with
multiple criteria?
Thanks everyone for your help. You all are the best!
Lifesavers!
Susan
 
A

Alan Beban

=SUM(COUNTIF(H3:T3,{"PP","VD"}))
Array entered into a two-cell row, the following will enter the number
of PP's in the first cell, the number of VD's in the second:

COUNTIF(H3:T3,{"PP","VD"})

Remember that COUNTIF is not case sensitive.

Alan Beban
 

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