Count the number of times a char appears in a cell

redstar11

New Member
Joined
Oct 2, 2006
Messages
3
I would like to count the number of times a certain character appears in a cell. i.e 'WHBBBBWW' has the value B 4 times. Is there a formula to calculate this, along the lines of COUNTIF(A1, "B"), but for a single char within a single cell?
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Watch MrExcel Video

Forum statistics

Threads
1,112,885
Messages
5,543,028
Members
410,583
Latest member
gazz57
Top