Solved

Remove space at beginning of cell in Excel

Posted on 2014-10-29
3
657 Views
Last Modified: 2014-10-29
Have an Excel worksheet that contains 600 rows of data in a single column (Col A).
Each cell in Col A contains text proceeded by a space, example:  " Text"
Is there a function or argument that I can use to remove the space from each cell in Col A?
0
Comment
Question by:clock1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40411981
try with:

+Trim(A1)
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40411984
try = trim(a1)
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40412039
Alternatively, you can use the Text-To-Columns function to clean up the column in-place without any formulas:
1) Select the entire column (click on "A" above row 1)
2) Select Excel menu: Data - Text to Columns
    You'll see a new dialog box
3) Select "Delimited" option on top, then click the "Next" button
4) Under "Delimiters" on top, select "Space".
    You'll see a vertical line appear to the left of the example text on the bottom.
5) Click the "Next" button
6) Under "Column data format" on top, select "Do not import this column (skip)".
    This will skip the first column of one space only.
7) Click the "Finish" button.

That's it, the extra spaces will be removed from column A.

Regards,
-Glenn
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question