Removing Leading Spaces
Manage your personal finances in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Removing Leading Spaces

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I have some cells that have a leading space in them and I want to remove the space. How do I accomplish this without searching all the cells?
    Thanks,

    Jerry

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Select 'em and choose the Data | Text to Columns... menu command.

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    NY
    Posts
    1,039
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Edit/Replace; replace " " (without quotes) with "" (without quotes)
    Bob Umlas
    Excel MVP

    On 2002-03-28 14:49, jlbecker67 wrote:
    I have some cells that have a leading space in them and I want to remove the space. How do I accomplish this without searching all the cells?
    Thanks,

    Jerry

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-28 15:06, Bob Umlas wrote:
    Edit/Replace; replace " " (without quotes) with "" (without quotes)
    Bob Umlas
    Excel MVP

    On 2002-03-28 14:49, jlbecker67 wrote:
    I have some cells that have a leading space in them and I want to remove the space. How do I accomplish this without searching all the cells?
    Thanks,

    Jerry
    ...But be careful... because this will change " junk mail" into "junkmail".

    [ This Message was edited by: Mark W. on 2002-03-28 15:11 ]

    [ This Message was edited by: Mark W. on 2002-03-28 15:12 ]

  5. #5
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Hi

    Text to Columns is probably the best solution. But the the TRIM function is good for this also, eg

    =TRIM(A1)



User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com