How to Remove Leading Blank Spaces in Excel

Save

Sometimes during data entry, unnecessary spaces are introduced in front of the useful data. This can happen when a name is entered into a Web form, for example. It can also happen when data is drawn from another source, such as an older or different format spreadsheet. Fortunately, Microsoft's Excel spreadsheet software has a built-in function to remove these unnecessary spaces.

  • Locate the cell that contains the text from which you need to remove leading spaces. Note the column letter and row number.

  • Click in an empty cell.

  • Type "=Trim(LetterNumber)" without quotation marks, replacing "Letter" with the column letter and "Number" with the row number of the cell that contains the text. For example, to trim the leading spaces from column C, row 5, you would enter "=Trim(C5)" without quotation marks.

Tips & Warnings

  • You can also remove outer spaces directly from text using the TRIM function by putting the text in the parentheses instead of the column letter and line number and surrounding it with quotation marks.

References

Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!