+ Reply to Thread
Results 1 to 5 of 5

Removing Spaces

  1. #1
    Registered User
    Join Date
    05-26-2006
    Posts
    36

    Removing Spaces

    Good Morning Everyone,

    Hopefully someone can help me out. Shouldn't be too hard but I can't figure it out.

    I have a formula, and the result is
    CAD 38869

    There is a space between the string, how can I remove ALL spaces?
    I see TRIM, but that will remove all but 1 space... and I need to remove that 1 space.

    Thanks in advance.
    Stephen

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by Solarissf
    Good Morning Everyone,

    Hopefully someone can help me out. Shouldn't be too hard but I can't figure it out.

    I have a formula, and the result is
    CAD 38869

    There is a space between the string, how can I remove ALL spaces?
    I see TRIM, but that will remove all but 1 space... and I need to remove that 1 space.

    Thanks in advance.
    Stephen
    Hi Solarissf,

    Try this

    =LEFT(A1,FIND(" ",A1,1)-1)&MID(A1,C1+1,100)

    oldchippy

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Or

    =SUBSTITUTE(A1," ","")

    VBA Noob

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by Solarissf
    Good Morning Everyone,

    Hopefully someone can help me out. Shouldn't be too hard but I can't figure it out.

    I have a formula, and the result is
    CAD 38869

    There is a space between the string, how can I remove ALL spaces?
    I see TRIM, but that will remove all but 1 space... and I need to remove that 1 space.

    Thanks in advance.
    Stephen
    select the range in which your data resides.
    press Ctrl+H
    in Find what: press space bar once
    leave Replace with as it is (i-e empty)
    and press Replace All

    you are done.
    Regards

  5. #5
    Registered User
    Join Date
    05-26-2006
    Posts
    36
    Thanks Guys,

    This Worked

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1