+ Reply to Thread
Results 1 to 6 of 6

removing spaces in imported document

  1. #1
    Registered User
    Join Date
    07-24-2005
    Posts
    35

    removing spaces in imported document

    Hi,

    I have imported a document into excel and have a column with about 2000 numbers in each cell.

    Each cell contains a number, there is a space before each number, I have tried the TRIM, CLEAN and FIND/REPLACE functions but this does not remove the space before the numbers inside the cell...

    How can I get rid of the spaces before the numbers in each cell in 1 go without having to click on each cell, hit delete in the formula bar and then press enter to remove the space..

    Please help

    thanks in advance..

    cheers

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try copying one of those spaces and select the column to perform the action on.

    Then go to Edit|Replace.

    In the Find What field paste what you copied.

    Leave the Replace With field blank.

    Click Replace All
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    1 it might not be a real space it could be character code 0160
    you can easily replace it

    alt+f to find /replace as usual
    in the search field
    hold down 'alt' and type in 0160 (using the number keypad)
    release alt
    you will see the cursor has moved 1 space to the right
    in the replace field enter nothing at all

    2.try asap add in under text there is an option to remove leading/trailing spaces if that doesnt work then try in advanced character remove click invisible then spaces and run tool
    http://www.asap-utilities.com/

  4. #4
    Registered User
    Join Date
    07-24-2005
    Posts
    35
    thanks guys, I tried the find replace without using the 0160 and holding ALT and it didnt work..

    I will report back once I have tried holding the ALT key and type 0160 in...

    figures crossed it works..

    thanks..

    P.S. is 0160 the generic code for removing spaces when working on imported data sheets? or is there another numerical code I could also try?
    Last edited by xirokx; 04-29-2008 at 02:30 PM.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The copy/paste didn't work either?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    i think 0173 is a blank
    full list here
    http://www.bonarius.de/ascii.htm

+ 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