Count number of * in a cell range

steallan

Active Member
Joined
Oct 20, 2004
Messages
308
hi

i'm just trying to find a formula to count the number of occurances of a character (a ; to be precise) in a range of cells.

Im not after it to count the number of cells that contain a ; but rather the total number of them.

If there a formula in excel to do this? Can only find ones that count the cell, problem is I have some cells with the character in a few times and I want it to count it each time.

Im not after a one off count either, I need the formula to sit in the cell and update if the char is added in the range.

Any tips be very helpful thanks

ste
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try this...

Code:
=SUM(LEN(range)-LEN(SUBSTITUTE(range,";","")))

Change both instances of the word "range" above to the range you want to search (ie A1:B100)

Confirm with Ctrl,Shift + Enter.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,258
Members
452,901
Latest member
LisaGo

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top