Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Summing all cells containing the letter K

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Summing all cells containing the letter K

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

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jan T." wrote in message
...
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




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Summing all cells containing the letter K

That simple, eh?
Thanks a lot. That did the trick.

Jan


"Bob Phillips" skrev i melding
...
=COUNTIF(A:A,"*K*")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jan T." wrote in message
...
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






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Summing all cells containing the letter K

=SUMPRODUCT(--ISNUMBER(SEARCH("K",A1:F1)))


"Jan T." wrote:

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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Summing all cells containing the letter K

Thank you very much for helping.
But can you tell me, what does the two minus before (--ISNUMBER... do?

Jan

"Teethless mama" skrev i melding
...
=SUMPRODUCT(--ISNUMBER(SEARCH("K",A1:F1)))


"Jan T." wrote:

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







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default Summing all cells containing the letter K

The "double unary minus" converts a logical (TRUE or FALSE) value to a
number (1 or 0).
--
David Biddulph

"Jan T." wrote in message
...
Thank you very much for helping.
But can you tell me, what does the two minus before (--ISNUMBER... do?

Jan

"Teethless mama" skrev i melding
...
=SUMPRODUCT(--ISNUMBER(SEARCH("K",A1:F1)))



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default Summing all cells containing the letter K


Aha, very interesting. I certainly did not know that.
Thank you so much for the answer. Have a nice day ;)

Regards
Jan

"David Biddulph" skrev i melding
...
The "double unary minus" converts a logical (TRUE or FALSE) value to a
number (1 or 0).
--
David Biddulph

"Jan T." wrote in message
...
Thank you very much for helping.
But can you tell me, what does the two minus before (--ISNUMBER... do?

Jan

"Teethless mama" skrev i
melding ...
=SUMPRODUCT(--ISNUMBER(SEARCH("K",A1:F1)))





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Summing all cells containing the letter K

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


"Jan T." wrote in message
...

Aha, very interesting. I certainly did not know that.
Thank you so much for the answer. Have a nice day ;)

Regards
Jan

"David Biddulph" skrev i melding
...
The "double unary minus" converts a logical (TRUE or FALSE) value to a
number (1 or 0).
--
David Biddulph

"Jan T." wrote in message
...
Thank you very much for helping.
But can you tell me, what does the two minus before (--ISNUMBER... do?

Jan

"Teethless mama" skrev i
melding ...
=SUMPRODUCT(--ISNUMBER(SEARCH("K",A1:F1)))







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Groups of cells between workbooks vnacj-joe Excel Discussion (Misc queries) 4 June 14th 07 05:18 PM
How can I add a single letter to text already in a list of cells? Gazivaldo New Users to Excel 3 November 16th 05 05:24 PM
How can I add a two letter prefix to text in cells? Newbs18 Excel Discussion (Misc queries) 2 November 9th 05 04:06 AM
count cells in a coloumn with letter x in it sarg Excel Worksheet Functions 2 September 24th 05 09:01 PM
Count number of cells that contain a certain letter - Case Sensitive elite Excel Discussion (Misc queries) 4 September 20th 05 01:41 PM


All times are GMT +1. The time now is 07:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"