Solved

Remove space at beginning of cell in Excel

Posted on 2014-10-29
3
437 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
3 Comments
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 40411981
try with:

+Trim(A1)
0
 
LVL 25

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now