Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default # of specific characters in a cell?

=len(A1)-len(substitute(A1,"a",""))

will count the number of a's (case sensitive).

If you want it case insensitive

=len(A1)-len(substitute(lower(A1),"a",""))

--
Regards,
Tom Ogilvy


"Chris" wrote in message
...
is there a formula that will count the number of times a character appears

in a single cell?

-Chris



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 specific characters in a cell JGreg7 Excel Discussion (Misc queries) 7 January 7th 10 11:04 PM
how do I set a maximum characters in a specific cell T. Valko Excel Discussion (Misc queries) 0 November 5th 09 07:58 PM
how do I set a maximum characters in a specific cell Mike H Excel Discussion (Misc queries) 0 November 5th 09 07:56 PM
Counting specific characters in a cell johan Excel Discussion (Misc queries) 2 September 18th 09 11:35 AM
how do I highlite text within a cell (specific characters) tim Excel Discussion (Misc queries) 1 May 20th 05 05:23 AM


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