ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   # of specific characters in a cell? (https://www.excelbanter.com/excel-programming/302011-re-specific-characters-cell.html)

Tom Ogilvy

# 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





All times are GMT +1. The time now is 01:15 AM.

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