Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

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

Author Xiaoyang Last modified

Kutools for Excel

Boosts Excel With 300+
Powerful Features

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.

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

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Productivity Tools Recommended

Office Tab: Use handy tabs in Microsoft Office, just like Chrome, Firefox, and the new Edge browser. Easily switch between documents with tabs — no more cluttered windows. Know more...

Kutools for Outlook: Kutools for Outlook offers 100+ powerful features for Microsoft Outlook 2010–2024 (and later versions), as well as Microsoft 365, helping you simplify email management and boost productivity. Know more...


Kutools for Excel

Kutools for Excel offers 300+ advanced features to streamline your work in Excel 2010 – 2024 and Microsoft 365. The feature above is just one of many time-saving tools included.

🌍 Supports 40+ interface languages
✅ Trusted by 500,000+ users and 80,000+ businesses worldwide
🚀 Compatible with all modern Excel versions
🎁 30-day full-featured trial — no registration, no limitations
Kutools for Excel RibbonKutools for Excel Ribbon