Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ron
 
Posts: n/a
Default number of character occurences in a cell


Hello,

Can anyone tell me if there is an excel built in function
that will count the number of occurences of a character in
a cell? For example, if cell D5 is "11,2,35,4" and I want
to count the number of commas in the cell, the result
should be 3.

thanks
Ron
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

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

Hope this helps!

In article ,
"Ron" wrote:

Hello,

Can anyone tell me if there is an excel built in function
that will count the number of occurences of a character in
a cell? For example, if cell D5 is "11,2,35,4" and I want
to count the number of commas in the cell, the result
should be 3.

thanks
Ron

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
Excel should let me circle a cell or number in the spreadsheet fo. BTaylor Excel Discussion (Misc queries) 2 March 8th 05 03:00 PM
HOW to COUNT THE FREQUENCY of specific CHARACTER WITHIN a CELL? Shooting Star Excel Discussion (Misc queries) 1 February 22nd 05 10:15 PM
How do i count character in cell? Angie Excel Discussion (Misc queries) 2 February 21st 05 10:20 PM
How to add the number in cell one by one in Hex format hon123456 Excel Discussion (Misc queries) 1 January 13th 05 12:51 PM
Changing number in same cell jrwheels Excel Worksheet Functions 2 October 28th 04 01:58 PM


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