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


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, 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!
officetab bottom
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 · 2 years ago
    It is almost complicated like solving the worlds problems. Just push "control, shift, c."