Summing all cells containing the letter K

  • Thread starter Thread starter Jan T.
  • Start date Start date
J

Jan T.

Hi.
I want to count all cells in a range that contains the letter K.

RON BLAIR KASPER HULK FRONT KIM

The example here would return 3 because 3 cells are containing a name that
has K in it.
I think I should put functions like SUMPRODUCT AND ISNUMBER AND MATCH,
but how do I put theese together?

Thanks in advance.

Mvh
Jan
 
=COUNTIF(A:A,"*K*")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Thank you very much for helping.
But can you tell me, what does the two minus before (--ISNUMBER... do?

Jan
 
The "double unary minus" converts a logical (TRUE or FALSE) value to a
number (1 or 0).
 
Aha, very interesting. I certainly did not know that.
Thank you so much for the answer. Have a nice day ;)

Regards
Jan
 
I use the following formula: =COUNTIF(D5:P5,"x")

In this case, I am counting the number of "x" between D5 and P5. You can
change the "x" to "K" if you want and identify the range you want to count,
up and down a column or as I have done in a row.

Brent
 

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

Back
Top