+ Reply to Thread
Results 1 to 6 of 6

Separate date and text

  1. #1
    Registered User
    Join Date
    06-30-2011
    Location
    Union, NJ
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    20

    Separate date and text

    Hi I am trying to separate text and date from one cell. The cell loos like this:
    9/22/2011 3:45 PM Notarangelo, Robert
    I need to get the name out of it and populate another cell with it. The problem here is that is not the same name, and the lenght of the text is different and the RIGHT, LEFT, MID functions do not work. Your help, as always, is highly appreciated.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Separate date and text

    Use the text to columns feature by using the fixed width delimiter.

  3. #3
    Registered User
    Join Date
    06-30-2011
    Location
    Union, NJ
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    20

    Re: Separate date and text

    Text to columns is not a good sloution for me as I have columns adjacent to the column in question that cannot be moved. Some kind of a formula would be ideal for my purpose. Thank you anyway for the reply.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Separate date and text

    Assuming the time always ends with AM or PM then you can just take everthing after the "M", e.g. with data in A2 try this formula

    =TRIM(REPLACE(A2,1,FIND("M",A2),""))
    Audere est facere

  5. #5
    Registered User
    Join Date
    06-30-2011
    Location
    Union, NJ
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    20

    Re: Separate date and text

    Quote Originally Posted by daddylonglegs View Post
    Assuming the time always ends with AM or PM then you can just take everthing after the "M", e.g. with data in A2 try this formula

    =TRIM(REPLACE(A2,1,FIND("M",A2),""))

    Didn't work.

  6. #6
    Registered User
    Join Date
    06-30-2011
    Location
    Union, NJ
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    20

    Re: Separate date and text

    It worked I have to tweek it a bit.
    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