+ Reply to Thread
Results 1 to 5 of 5

Extracting portion of text text

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2007
    Posts
    5

    Extracting portion of text text

    Hello All. I have text which contains general text reflecting date & time. The general text would look as follows: "Saturday 10 June 2011 Time 22H00". I need to extract first the date only from each cell and copying it to the next column, and the same with the time. How would I do that? Sheet sample attached. Thank you very much
    Attached Files Attached Files
    Last edited by speedbird168; 02-09-2012 at 08:39 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Extracting portion of text text

    The date is a tricky since you have lots of variants

    For the time use this

    =TIMEVALUE(SUBSTITUTE(UPPER(RIGHT(A2,5)),"H",":"))

    and set the format to time to display a time rather than a decimal number
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    02-09-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting portion of text text

    Superb solution. Many thanks Special-K.

  4. #4
    Registered User
    Join Date
    02-09-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting portion of text text

    If I were to try the DATEVALUE formula on "Saturday 10 June 2011 Time 22H00", what would be the 'old text' and 'new text'?

  5. #5
    Registered User
    Join Date
    02-09-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting portion of text text

    Still battling to extract date only from the data. Anybody have any suggestions on how to configure the DATEVALUE in this case? Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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