Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Counting specific character in text string

Within a cell, I need to count the number of times a given character (dash)
occurs. I suspect that I need to use a recursive FIND, but I don't know how
to do it. Can anyone help?
Thanks,
Bob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Counting specific character in text string

One way:

=LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))

In article ,
Bob wrote:

Within a cell, I need to count the number of times a given character (dash)
occurs. I suspect that I need to use a recursive FIND, but I don't know how
to do it. Can anyone help?
Thanks,
Bob

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting specific character in text string

=LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))


"Bob" wrote:

Within a cell, I need to count the number of times a given character (dash)
occurs. I suspect that I need to use a recursive FIND, but I don't know how
to do it. Can anyone help?
Thanks,
Bob

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Counting specific character in text string

Thanks!!!

"Teethless mama" wrote:

=LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))


"Bob" wrote:

Within a cell, I need to count the number of times a given character (dash)
occurs. I suspect that I need to use a recursive FIND, but I don't know how
to do it. Can anyone help?
Thanks,
Bob

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
How to convert a month to a quarter ...... Epinn New Users to Excel 26 May 3rd 23 07:45 PM
Finding specific text in string - Part II Hardip Excel Worksheet Functions 1 April 8th 06 02:20 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Setting character attributes in a text string Greg Neill Excel Worksheet Functions 1 June 15th 05 08:47 PM
Counting specific text in a cell Steve Excel Worksheet Functions 7 January 26th 05 05:51 PM


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