Solved

Remove space at beginning of cell in Excel

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

747 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