countif

G

Guest

I want to count the occurrences of multiple character strings eg. "AB" "XD"
and "CD". Is there an easier way than = (countif(1:100), "AB") +
(countif(1:100), "XD") etc.
 
D

Dave Peterson

=SUM(COUNTIF(A1:a100,{"AB","xd","cd"}))
I want to count the occurrences of multiple character strings eg. "AB" "XD"
and "CD". Is there an easier way than = (countif(1:100), "AB") +
(countif(1:100), "XD") etc.
 
G

Guest

Thank you! Exactly what I am looking for. I tried to put something like
this together but didn't realize that I would have to use "SUM" and I admit
that I don't know when to use the characters "{" and "}" in a formula.
 

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