ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   HOW to COUNT THE FREQUENCY of specific CHARACTER WITHIN a CELL? (https://www.excelbanter.com/excel-discussion-misc-queries/14488-how-count-frequency-specific-character-within-cell.html)

Shooting Star

HOW to COUNT THE FREQUENCY of specific CHARACTER WITHIN a CELL?
 
How can a frequency of a specific character be counted with in a cell. Ex -"
#4 Bluebirds, #6 Aquatic" is in cell B2 - how do I count the number of "#"
that appear in cell B2?

Jason Morin

=LEN(B2)-LEN(SUBSTITUTE(B2,"#",""))

HTH
Jason
Atlanta, GA

-----Original Message-----
How can a frequency of a specific character be counted

with in a cell. Ex -"
#4 Bluebirds, #6 Aquatic" is in cell B2 - how do I count

the number of "#"
that appear in cell B2?
.



All times are GMT +1. The time now is 01:35 PM.

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