+ Reply to Thread
Results 1 to 3 of 3

How to remove space and symbols in front of words

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    U.S
    MS-Off Ver
    Excel 2007
    Posts
    25

    How to remove space and symbols in front of words

    I have a spreadsheet that I exported from my accounting software. For some reason there are 4 columns that all begin with an apostrophe and have various lengths of white space before the wording begins. What kind of formula can I use to get rid of the apostrophe and have the wording be left aligned within the cell with no space before or after it?

    The file I am working on is attached. They are columns C, D, E and F.

    Thanks!
    Attached Files Attached Files
    Last edited by Jeff M; 03-26-2009 at 01:10 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to remove space and symbols in front of words

    Try in a new column:

    =TRIM(SUBSTITUTE(D2,"'",""))

    copied down for column D and then copy/paste special values over original column D. Then delete the formula column and repeat for columns E and F
    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

    Re: How to remove space and symbols in front of words

    1. to get rid of '
    find replace ' with nothing
    2
    to get rid of leading space
    select column
    data/text to columns/
    select fixed width
    click next
    double click on the breakline (if its there) to remove it
    click finish
    Last edited by martindwilson; 03-26-2009 at 12:59 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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