# Count Occurrence of a Specific Character in a cell

#### Blessy Clara

##### Board Regular
Hi

I have a column of Address, and i would like to know the Number of times, a comma occurs in the cell.

 Zillmere, QLD, 4304 Westfield Belconnen, Benjamin Way, Belconnen, ACT, 2617 Wanneroo Central Shopping Centre, Rocca Way, Wanneroo, WA, 6065 Unit 6, 5 Hughes Street, (cnr Nicholson Road & Hughes Street), Canning Vale, WA, 6155

<tbody>
</tbody>

Desired Result

 Zillmere, QLD, 4304

<tbody>
</tbody>
2
 Westfield Belconnen, Benjamin Way, Belconnen, ACT, 2617

<tbody>
</tbody>
4
 Wanneroo Central Shopping Centre, Rocca Way, Wanneroo, WA, 6065

<tbody>
</tbody>
4
 Unit 6, 5 Hughes Street, (cnr Nicholson Road & Hughes Street), Canning Vale, WA, 6155

<tbody>
</tbody>
5

<tbody>
</tbody>

### Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

#### Blessy Clara

##### Board Regular
Hi Scott T

Thank you very much for the formula, Yes awesome

#### hiker95

##### Well-known Member
Blessy Clara,

Here is another formula to try.

If A1 contains Zillmere, QLD, 4304

Then, in B1 enter the following formula:

=SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(A1,",","")))

B1 will display 2

#### Blessy Clara

##### Board Regular
Hi hiker95

Yes that was cool, thank you very much for the formula

#### hiker95

##### Well-known Member
Blessy Clara,

Thanks for the feedback.

You are very welcome. Glad I could help.

And, come back anytime.

Last edited:

1,136,331
Messages
5,675,156
Members
419,552
Latest member
jsanjur

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back