+ Reply to Thread
Results 1 to 4 of 4

Remove all characters after space

  1. #1
    Registered User
    Join Date
    09-16-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    50

    Remove all characters after space

    Hi,
    Have about 60,000 records
    all are dates like so..


    09-NOV-10 11.23.41.000000000 PM


    want to remove all characters after the space so I can strip the timestamp out and just be left with..

    09-NOV-10

    can someone tell me an easy way to do this ?
    thanks.
    Last edited by NBVC; 12-02-2010 at 10:28 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: Remove all characters after space

    try this in another column:

    =LEFT(A1,FIND(" ",A1)-1)+0

    and formatted as date

    where A1 has current string copied down.

    You can then copy and paste special >> Values over the original, if desired and remove the formula column.
    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
    Registered User
    Join Date
    09-16-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    50

    Re: Remove all characters after space

    ok tried it.
    this changed the string to

    00-Jan-00


    no matter what date is.

  4. #4
    Registered User
    Join Date
    09-16-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    50

    Re: Remove all characters after space

    sorry my mistake. yes this worked perfect. thanks.

+ 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