Remove Spaces from Imported Excel Data

by rhyttinen on May 3, 2010

Very often, data that is imported into Excel needs to be formatted. You may find that when importing numbers, Excel will import your data as a text format – and often with spaces before the data. Converting the text to a number format using the Format Cells command will not clear the spaces – they will remain.

One way to remove any leading spaces from data in a cell is to use the Value and Trim function. For instance, if I wanted to remove the spaces from cell A4, the formula would be:

=VALUE(TRIM(A4))

Value and Trim Function in Excel

If your goal is to remove the spaces AND convert the text data to number format, select the cells that contain the data, click the Smart Tag button and choose “Convert to Number”.

Smart Tag Convert to Number feature in Excel

Similar Posts:

Share and Enjoy:
  • del.icio.us
  • Digg
  • TwitThis
  • Reddit
  • Technorati
  • Facebook
  • StumbleUpon
  • Google Bookmarks
  • Propeller
  • email

Leave a Comment

Previous post:

Next post: