How To Remove Space From Excel

Hey there! Today, I want to talk about a very useful Excel tip that I often find myself using – removing spaces from Excel cells. This is a handy skill to have, especially when dealing with data that may not be formatted perfectly. Let’s dive into the step-by-step process of removing spaces from Excel cells.

Identifying the Problem

Before we can remove spaces from Excel, it’s important to identify where these spaces are located. Sometimes, they can be tricky to spot, especially when dealing with large datasets. One method I use to identify these pesky spaces is by using the =LEN() function in Excel. By checking the length of the cell contents, we can pinpoint which cells have extra spaces.

Using the TRIM Function

One of the quickest and easiest ways to remove leading, trailing, and excess internal spaces from cells is by using the =TRIM() function in Excel. This function is a real lifesaver and can save a ton of time, especially when working with lengthy text or numerous cells containing spaces. Simply apply the =TRIM() function to the cell or range of cells, and voila – the spaces are gone!

Find and Replace

Another method I frequently use to remove spaces from Excel is the “Find and Replace” feature. This feature allows me to replace all occurrences of a space with no space at all. To do this, I press Ctrl+H to open the “Find and Replace” dialog box, then I enter a space in the “Find what” field and leave the “Replace with” field empty. Clicking “Replace All” then magically removes all the spaces in one go!

Custom Formula

For more complex scenarios, I resort to creating a custom formula to remove spaces from Excel cells. One of my go-to formulas for this purpose is the combination of =SUBSTITUTE() and =TRIM(). By nesting these functions together, I can effectively eliminate all spaces from the selected cells, no matter where they are located within the text.


Removing spaces from Excel can greatly improve the cleanliness and consistency of your data. Whether you opt for the straightforward =TRIM() function, the “Find and Replace” method, or a custom formula, having the ability to tidy up your Excel sheets is an essential skill for anyone working with data. So, the next time you encounter pesky spaces in your Excel cells, remember these methods and reclaim your data’s neatness!