How To Count The Number Of Characters Excluding Spaces In Excel Cell?


Excel is a powerful tool that offers a variety of functions for data manipulation and analysis. One common task when working with text data is to count the number of characters in a cell. However, in some cases, you may want to exclude spaces from the character count, such as when you are working with long strings of text or want to analyse the length of words without counting spaces. In this tutorial, we will walk you through the steps to count the number of characters in an Excel cell while excluding spaces. We will cover both manual methods and formula-based methods, so you can choose the one that suits your needs best. Whether you are a beginner or an experienced Excel user, this tutorial will help you become more proficient in working with text data in Excel.

Count The Number Of Characters Excluding Spaces

Here we will use the formula to get any one of the values, then use the auto-fill handle to complete the task. So let us see a simple process to know how you can count the number of characters, excluding spaces, in Excel.

Step 1

Consider an Excel sheet where you have a list of sentences as shown in the below image.

Now, first click on an empty cell and enter the formula as =LEN(SUBSTITUTE(A2," ","") and click enter to get the first result. In the formula, A2 is the address of the cell containing the sentence.

Empty cell > Formula > Enter

Step 2

Finally, to fill all the values, drag down from the first result using the auto-fill handle, and the final result will be similar to the below image.

Conclusion

In this tutorial, we used a simple example to demonstrate how you can count the number of characters, excluding spaces, in an Excel cell to highlight a particular set of data.

Updated on: 12-Jul-2023

188 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements