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 the number of characters excluding spaces in Excel cell?

In general, when you count the number of characters in a cell, it will count including the spaces. But in some cases, what we need is to count the number of characters excluding spaces in a single cell, how can you quickly handle it in Excel?

Count number of characters excluding spaces with formula

Remove all spaces of a cell then count the characters in a cell with Kutools for Excel


good idea4Remove Spaces

Kutools for Excel's Remove Spaces can remove leading spaces, trailing spaces, excess spaces or all spaces from a range cells.
doc count excluding spaces 4

arrow blue right bubble Count number of characters excluding spaces with formula


Here I can introduce a formula for you to quickly count the total number of characters excluding spaces in a cell.

formula Never need to worry about long long formulas in Excel anymore! Kutools for Excel's Auto Text can add all formulas to a group
as auto text, and liberate your brain! Click here to know Auto Text     Click here to get free trial

1. Select a cell which will output the counted result, for instance, C1, and type this formula =LEN(SUBSTITUTE(A1," ","")), and press Enter key to get the result. If you need, you can drag the autofill handle over the cells needed the formula.

doc count excluding spaces 1
doc count excluding spaces 2

Tip: In the formula, A1 is the cell you want to count the total number of characters excluding spaces.


arrow blue right bubble Remove all spaces of a cell then count the characters in a cell with Kutools for Excel

If you like use the most easiest =LEN() formula to count the characters of a cell excluding spaces, you can apply Kutools for Excel’s Remove Spaces function to remove all spaces then count.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

1. Select the cells you want to count the total number of characters from each cell, and click Kutools > Text > Remove Spaces. See screenshot:

doc count excluding spaces 3

2. In the Remove Spaces dialog, check All spaces option, and you can preview the results form Preview pane. See screenshot:

doc count excluding spaces 4

3. Click Ok, and all the spaces are removed from each cell. Then select a blank cell, for instance, C1, and type =LEN(A1), and press Enter key, and drag autofill handle over the cells which need this formula.

doc count excluding spaces 5
doc count excluding spaces 6

With Kutools for Excel’s Remove Spaces, you can remove all leading spaces, trailing space, extract spaces, leading and trailing space from each cell as you need.

pay attention1If you are interested in this addi-in, click here to download the 60-days free trial.

Relative Articles:


doc KTE


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.
  • To post as a guest, your comment is unpublished.
    Duh · 1 years ago
    It is almost complicated like solving the worlds problems. Just push "control, shift, c."