ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   count a character (https://www.excelbanter.com/excel-discussion-misc-queries/250122-count-character.html)

hsg

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

T. Valko

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




David Biddulph[_2_]

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





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com