Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Quickly count the occurrences of a character in a string in Excel

Supposing, you have a list of test strings in a worksheet, now you want to count the number of times a specific character or letter appears within a cell. Are you still counting the occurrences of that specified character one by one manually? Kutools for Excel’s COUNTCHAR function can quickly count specific character appearing times in a cell.

COUNTCHAR function: Counting the number of times a character appears in a string


Click Kutools >> Kutools Functions >> Statistical & Math >> COUNTCHAR, see screenshot:

shot count occurence of character 1


COUNTCHAR function: Counting the number of times a character appears in a string

Take the following data for example, I want to count the number of the letter “c” which appears in the cell A1, please do as follows:

shot-count-specific-character-2

1. Select one cell where you want to put the result.

2. Apply COUNTCHAR function by clicking Kutools > Kutools Functions > Statistical & Math > COUNTCHAR, in the popped out Function Arguments dialog box, click the first shot-count-specific-character-0 button besides Within-text to select the cell which you want to count the specific character, and then enter the character “c” that you want to count the occurrences of the text string, see screenshot:

shot-count-specific-character-3

3. And then click OK to close the dialog, you will get the number of times that specific character appears, see screenshot:

shot-count-specific-character-4


Notes

1. This function is case sensitive.

2. With this utility, you can also count any other special characters, such as , ;*?/!~ and so on.


Productivity Tools Recommended
The following tools can greatly save your time and money, which one is right for you?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: More than 300 Advanced Functions for Excel 2019, 2016, 2013, 2010, 2007 and Office 365.
Classic Menu for Office: Bring back familiar menus to Office 2007, 2010, 2013, 2016, 2019 and 365, as if it were Office 2000 and 2003.

Kutools for Excel

The functionality described above is just one of 300 powerful functions of Kutools for Excel.

Designed for Excel(Office) 2019, 2016, 2013, 2010, 2007 and Office 365. Free download and use for 60 days.

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.