+ Reply to Thread
Results 1 to 5 of 5

remove spaces in cells

  1. #1
    Registered User
    Join Date
    09-11-2009
    Location
    Aldershot, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    remove spaces in cells

    Hi

    I have some amounts in excel that have a space in them where I need the space removed
    Ie 40 250.00 and I need them to show as 40250.00
    Or 1 250.53 which needs to be 1250.53

    The find and replace does not work, neither does the substitute function, because of the decimal point. IF statements do not seem to work either…

    I cannot remove the decimals by decreasing the number of decimals as it does not recognise the value as an amount because of the space!

    Has anyone got any bright ideas on this? Many Thanks

    Lorna

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: remove spaces in cells

    You say find and replace of space with nothing does not work ?

    It should do - you just need to ensure format of cells is subsequently set to number and 2 decimal places (to get 40250.00 rather than 40250)

    If it doesn't - you need to establish which CHAR code is in play... it's obviously not space (32) ... so using the 40 250.00 example and assuming this is stoted in A1 in B1 enter: =CODE(MID(A1,3,1)) ... what is the output ?

  3. #3
    Registered User
    Join Date
    09-11-2009
    Location
    Aldershot, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: remove spaces in cells

    Thanks

    The output is 32...

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: remove spaces in cells

    So it is a space... can you post a sample ?

    If you run an Edit -> Replace and replace space with nothing what happens - presumably 40 250.00 become 40250 ?

  5. #5
    Registered User
    Join Date
    09-11-2009
    Location
    Aldershot, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile Re: remove spaces in cells

    Hi Again

    OK, find and replace is now working! Instead of putting a space in the find bar with the space bar, I copied the actual space in my number and pasted it into the find bar....

    Thanks anyway for your help
    Last edited by lbullen; 09-11-2009 at 07:17 AM. Reason: spelling

+ 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