#1   Report Post  
Posted to microsoft.public.excel.misc
hsg hsg is offline
external usenet poster
 
Posts: 40
Default count a character

How can we count the number of times a character is appearing in a cell, i.e.
if I enter a text in a cell, how many times "L" is appearing in it?

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default count a character

Try this...

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

Case being equal: L and l are the same

--
Biff
Microsoft Excel MVP


"hsg" wrote in message
...
How can we count the number of times a character is appearing in a cell,
i.e.
if I enter a text in a cell, how many times "L" is appearing in it?

thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default count a character

=LEN(A1)-LEN(SUBSTITUTE(A1,"L",""))
--
David Biddulph

"hsg" wrote in message
...
How can we count the number of times a character is appearing in a cell,
i.e.
if I enter a text in a cell, how many times "L" is appearing in it?

thanks in advance



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
Character count dan Excel Discussion (Misc queries) 9 September 27th 07 07:57 PM
character count Mariappan New Users to Excel 3 September 6th 07 02:18 PM
Character count and locking? Liani Excel Discussion (Misc queries) 2 April 20th 06 10:55 AM
Character Count Hardip Excel Worksheet Functions 5 January 10th 06 01:46 PM
How do i count character in cell? Angie Excel Discussion (Misc queries) 2 February 21st 05 10:20 PM


All times are GMT +1. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"