+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : removing spaces

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    removing spaces

    i have imported some data from an accounting programme, but the numbers have come in as a text string

    eg "345 456,54"

    i want to remove the spaces and convert so that excel understands it as a number 345456.54

    any ideas?

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: removing spaces

    To remove the spaces try =SUBSTITUTE(A1," ","")

  3. #3
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: removing spaces

    tried this, didnt work. Any other ideas?

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

    Re: removing spaces

    Try CHAR(160)

    =--SUBSTITUTE(A1,CHAR(160),"")

    If that does not work you need to identify the offending CHAR - using your sample you can do this using: =CODE(MID(A1,4,1))


    EDIT: hang on... given you're in the UK:

    =--SUBSTITUTE(SUBSTITUTE(A1," ",""),",",".")
    Last edited by DonkeyOte; 02-19-2010 at 08:55 AM.

  5. #5
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: removing spaces

    That's genius! Thanks Donkey, you have saved me a shed load of time today!

+ 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