Solved

Remove space at beginning of cell in Excel

Posted on 2014-10-29
3
604 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

734 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