Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default Count Cells where text may contain a specific word

I need to count (text or general) cells G2 thru G2000 if the text contains
the following word DSMB - combination of 4 charachters All Caps. How do I do
this? The word DSVB may be at the beginning, middle or the end of sentence.
No specific position.
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count Cells where text may contain a specific word

Try,

=COUNTIF(G2:G2000,"*DSMB*")

Mike

"Vic" wrote:

I need to count (text or general) cells G2 thru G2000 if the text contains
the following word DSMB - combination of 4 charachters All Caps. How do I do
this? The word DSVB may be at the beginning, middle or the end of sentence.
No specific position.
Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Count Cells where text may contain a specific word

=sumproduct(--(instr(G2:G2000,"DSMB")0))

"Vic" wrote:

I need to count (text or general) cells G2 thru G2000 if the text contains
the following word DSMB - combination of 4 charachters All Caps. How do I do
this? The word DSVB may be at the beginning, middle or the end of sentence.
No specific position.
Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default Count Cells where text may contain a specific word

Mike,
Here is my entire formula. I can't get it to work. Everything is spelled
correctly.

=CONCATENATE(COUNTIF(A10:A500,"*Australia*")," :
",COUNTIF('DFS-Sym'!C90:C2000,"*Australia*"),"
(",SUMPRODUCT(--('DFS-Sym'!C90:C2000,"*Australia*"),--('DFS-Sym'!J90:J2000,"*DSMB*")),")")

The logic behind it: I need counter for all sent items to each country,
counter for received items for that country and how many DSMB items they
received. The result should look like this == 200 : 100 (10)
Thank you

"Mike H" wrote:

Try,

=COUNTIF(G2:G2000,"*DSMB*")

Mike

"Vic" wrote:

I need to count (text or general) cells G2 thru G2000 if the text contains
the following word DSMB - combination of 4 charachters All Caps. How do I do
this? The word DSVB may be at the beginning, middle or the end of sentence.
No specific position.
Thank you.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Count Cells where text may contain a specific word

=CONCATENATE(COUNTIF(A10:A500,"*Australia*")," :
",COUNTIF('DFS-Sym'!C90:C2000,"*Australia*"),"(",SUMPRODUCT(--('DFS-Sym'!C90:C2000="*Australia*")),--('DFS-Sym'!J90:J2000="*DSMB*"),")")

"Vic" wrote:

Mike,
Here is my entire formula. I can't get it to work. Everything is spelled
correctly.

=CONCATENATE(COUNTIF(A10:A500,"*Australia*")," :
",COUNTIF('DFS-Sym'!C90:C2000,"*Australia*"),"
(",SUMPRODUCT(--('DFS-Sym'!C90:C2000,"*Australia*"),--('DFS-Sym'!J90:J2000,"*DSMB*")),")")

The logic behind it: I need counter for all sent items to each country,
counter for received items for that country and how many DSMB items they
received. The result should look like this == 200 : 100 (10)
Thank you

"Mike H" wrote:

Try,

=COUNTIF(G2:G2000,"*DSMB*")

Mike

"Vic" wrote:

I need to count (text or general) cells G2 thru G2000 if the text contains
the following word DSMB - combination of 4 charachters All Caps. How do I do
this? The word DSVB may be at the beginning, middle or the end of sentence.
No specific position.
Thank you.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count Cells where text may contain a specific word

Vic,

Your formula is falling over because your trying to use wildcards in
sumproduct.

Try this and note I'm using & instead of concatenate

=COUNTIF(A10:A500,"*Australia*")&" :
"&COUNTIF('DFs-Sym'!C90:C2000,"*Australia*")&"("&SUMPRODUCT(ISNUM BER(SEARCH("Australia",'DFs-Sym'!C90:C2000,1))*(ISNUMBER(SEARCH("DSMB",'DFs-Sym'!J90:J2000,1))))&")"

Mike

Mike

"Vic" wrote:

Mike,
Here is my entire formula. I can't get it to work. Everything is spelled
correctly.

=CONCATENATE(COUNTIF(A10:A500,"*Australia*")," :
",COUNTIF('DFS-Sym'!C90:C2000,"*Australia*"),"
(",SUMPRODUCT(--('DFS-Sym'!C90:C2000,"*Australia*"),--('DFS-Sym'!J90:J2000,"*DSMB*")),")")

The logic behind it: I need counter for all sent items to each country,
counter for received items for that country and how many DSMB items they
received. The result should look like this == 200 : 100 (10)
Thank you

"Mike H" wrote:

Try,

=COUNTIF(G2:G2000,"*DSMB*")

Mike

"Vic" wrote:

I need to count (text or general) cells G2 thru G2000 if the text contains
the following word DSMB - combination of 4 charachters All Caps. How do I do
this? The word DSVB may be at the beginning, middle or the end of sentence.
No specific position.
Thank you.

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
Count percentage of specific text in a range of cells kruggie2000 Excel Worksheet Functions 1 October 6th 08 05:59 PM
I need to count and / or sum cells with specific text colours. Hel J. Excel Discussion (Misc queries) 3 July 14th 08 02:47 PM
Count cells containing specific text dandiehl Excel Discussion (Misc queries) 4 August 21st 07 07:34 PM
count cells that begin with specific text mmer at steelcase Excel Worksheet Functions 7 July 25th 06 09:03 PM
If two cells have specific text to count as 1 Jazzman10 Excel Worksheet Functions 4 June 26th 06 05:09 PM


All times are GMT +1. The time now is 03:37 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"