#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Formula to Count

Is there a formula that will count how many times a word that is 4 characters
long appears in column M?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Formula to Count

TGalin,

If you only have single words in the cells:

=SUMPRODUCT((LEN(M1:M1000)=4)*1)

HTH,
Bernie
MS Excel MVP


"TGalin" wrote in message
...
Is there a formula that will count how many times a word that is 4 characters
long appears in column M?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Formula to Count

Here is another way to do what you want using this array-entered formula...

=COUNT(IF(LEN(A1:A100)=4,1))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself
--
Rick (MVP - Excel)


"TGalin" wrote in message
...
Is there a formula that will count how many times a word that is 4
characters
long appears in column M?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Formula to Count

We can save two characters by using this array-entered formula instead of
the one I posted originally...

=SUM(IF(LEN(A1:A100)=4,1))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Here is another way to do what you want using this array-entered
formula...

=COUNT(IF(LEN(A1:A100)=4,1))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself
--
Rick (MVP - Excel)


"TGalin" wrote in message
...
Is there a formula that will count how many times a word that is 4
characters
long appears in column M?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Formula to Count

Maybe

=SUMPRODUCT(((LEN(A1:A22)=4)+0)*(ISTEXT(A1:A22)))

Mike

"TGalin" wrote:

Is there a formula that will count how many times a word that is 4 characters
long appears in column M?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Formula to Count

It works. I tried it out. Thank you.

"Rick Rothstein" wrote:

Here is another way to do what you want using this array-entered formula...

=COUNT(IF(LEN(A1:A100)=4,1))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself
--
Rick (MVP - Excel)


"TGalin" wrote in message
...
Is there a formula that will count how many times a word that is 4
characters
long appears in column M?



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Formula to Count

I tried it out and it worked. Thank you.

"Mike H" wrote:

Maybe

=SUMPRODUCT(((LEN(A1:A22)=4)+0)*(ISTEXT(A1:A22)))

Mike

"TGalin" wrote:

Is there a formula that will count how many times a word that is 4 characters
long appears in column M?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Formula to Count

This works also. Lean is always better.

"Rick Rothstein" wrote:

We can save two characters by using this array-entered formula instead of
the one I posted originally...

=SUM(IF(LEN(A1:A100)=4,1))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Here is another way to do what you want using this array-entered
formula...

=COUNT(IF(LEN(A1:A100)=4,1))

**Commit formula using Ctrl+Shift+Enter, not just Enter by itself
--
Rick (MVP - Excel)


"TGalin" wrote in message
...
Is there a formula that will count how many times a word that is 4
characters
long appears in column M?




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 Formula - Count Ticks LittleAnn Excel Discussion (Misc queries) 3 May 8th 23 07:44 PM
Count formula Sue Excel Discussion (Misc queries) 3 June 26th 08 08:54 PM
Trying to construct a count count formula Chris K Excel Discussion (Misc queries) 6 May 26th 07 07:20 PM
Need a Count Formula esmer Excel Worksheet Functions 1 March 2nd 06 09:58 PM
Count down formula Foss Excel Worksheet Functions 4 August 28th 05 08:41 PM


All times are GMT +1. The time now is 12:18 AM.

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"