Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to count specific characters (comma/semicolon/question marks) in cell/range in Excel?

For example there is a long sentence in a cell, and you need to count the number of commas in this sentence/cell, how to easily solve it? And how about counting the commas or other specific characters in a range? The following methods will ease your work.

Count a specific character in a cell with formula

Count a specific character in a cell with Kutools for Excel

Count a specific character in a cell/range with Kutools for Excel


arrow blue right bubble Count a specific character in a cell with formula


This method will introduce a formula to count a specific character in a cell. Here I will take the comma for example, and show you the detailed steps to count the number of comma in a cell.

Select a blank cell for locating the counting result, enter the formula =LEN(A2)-LEN(SUBSTITUTE(A2,",","")) into it, and then drag this cell’s Fill Handle to the range as you need. See below screenshots:


arrow blue right bubble Count a specific character in a cell with Kutools for Excel

Kutools for Excel developed a COUNTCHAR function which can help you easily count a specific character in a text string or a cell. You can try it as follows:

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select a blank cell where you will return the counting result, and click Kutools > Functions > Statistical & Math > COUNTCHAR. See screenshot:

doc count specific chars comma 01

2. Now the Function Arguments dialog box pops out, specify the cell or text string where you will count the specific characters in the Within_text box, and type the specific character in the Find_text box, and click the OK button.

3. Keep selecting this function cell, and drag its Fill Handle for applying this function to the range as you need.

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


arrow blue right bubbleCount a specific character in a cell/range with Kutools for Excel

Sometimes you may need to count the number of a specific character in a range. Actually Kutools for Excel collects some commonly-used formulas which can help you solve it easily.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select a blank cell that you will return the counting result, and click Kutools > Formulas > Count Times a word appears. See screenshot:

doc count specific chars comma 02

2. In the opening Formula Helper dialog box, specify the range you will count the specific character in the Text box, and type the specific character into the Word box. See screenshot:

Note: Please enclose the specific character with quotes, such as “,” in the Word box.

doc count specific chars comma 8

3. Click the Ok button. Then the occurrences of this specific character has been counted and returned into the selected cell.

Note: This formula can also count the number of a specific character in a single cell. See below screenshot:

doc count specific chars comma 7

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
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.