Finding 2 different letters in a range

B

Bampah

I have been using the following formula to find the total occurrences
of the letter "g" in a range
=COUNTIF(B2:B39,"g")
I now need to also look for the letter "a" to give a return of them
both combined.
How do I achieve this please?
 
B

Boying Opaw

I am not sure if this is what you mean? I hope it helps.

=COUNTIF(B2:B39,"g") + COUNTIF(B2:B39,"a")
 
B

Bampah

I am not sure if this is what you mean? I hope it helps.

=COUNTIF(B2:B39,"g") + COUNTIF(B2:B39,"a")

Thanks, that's exactly what I wanted.
So simple..........................like me I guess

Rob
 
D

David Biddulph

The braces define an array.
--
David Biddulph

Bampah said:
Thanks Mama
That looks more elegant.
What is the purpose of the 'sqiggly' parenthsis

Rob
 

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