+ Reply to Thread
Results 1 to 6 of 6

Date and Time text into value

  1. #1
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Date and Time text into value

    Hi, in column A i have a date and time in a text format.

    Im looking for a formula to put them into a value

    So in column B i would like just the date and column C i would like just the start time.

    here is the format

    Jan 5, 2015 5:00:00 PM - 5:59:59 PM

    but i would like it like this

    01/05/15 17:00
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Re: Date and Time text into value

    Quote Originally Posted by namluke View Post
    Hi, in column A i have a date and time in a text format.

    Im looking for a formula to put them into a value

    So in column B i would like just the date and column C i would like just the start time.

    here is the format

    Jan 5, 2015 5:00:00 PM - 5:59:59 PM

    but i would like it like this

    01/05/15 17:00
    Please find attached.

    EF - namluke 17 07 2015.xlsx

    Regards,

    J.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Date and Time text into value

    Do this..

    Select your range of data in Column A

    Data -- Text to Columns -- Delimited by -- Other
    In other type in: -
    Next -- Date -- DMY
    Finish

    Your data will be split into two columns with date and start time in first column and - end time in the other
    Ignore latter column

    In a separate column use
    =INT(A2)
    for date

    and
    =MOD(A2)
    for time

    Format cells accordingly
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,876

    Re: Date and Time text into value

    Or, If you want a Formula..

    In B2 - =DATE(MID(A2,FIND(",",A2)+2,4),MONTH(1&LEFT(A2,FIND(" ",A2)-1)),MID(A2,FIND(" ",A2)+1,(FIND(",",A2)-FIND(" ",A2)-1)))

    In C2 - =TIME(MID(SUBSTITUTE(A2," ","|",3),FIND("|",SUBSTITUTE(A2," ","|",3))+1,FIND(":",SUBSTITUTE(A2," ","|",3))-1-FIND("|",SUBSTITUTE(A2," ","|",3)))+IF(ISNUMBER(FIND("AM",A2)),0,12),0,0)

    And Format the B Column with mm-dd-yyyy;@

    File Attached
    Attached Files Attached Files
    Cheers!
    Deep Dave

  5. #5
    Forum Contributor
    Join Date
    08-11-2013
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    270

    Re: Date and Time text into value

    Awesome Thank you James

  6. #6
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Re: Date and Time text into value

    Quote Originally Posted by namluke View Post
    Awesome Thank you James

    No problem!

    J.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Extract time from date and time text string
    By pattem2013 in forum Excel General
    Replies: 5
    Last Post: 09-07-2013, 03:20 AM
  2. Converting text string that contains a date and time to a date
    By jmforde in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 02:31 PM
  3. Need to capture date data in a text string containing a date and time stamp
    By Grilleman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 01:14 PM
  4. Converting Date:Time text to Date:Time value
    By kacharuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-13-2009, 04:20 AM
  5. Ediy Date & Time to change Time to Text
    By RodBoggy in forum Excel General
    Replies: 1
    Last Post: 01-18-2006, 10:30 AM
  6. Date Time - Change Time to Text
    By RodBoggy in forum Excel General
    Replies: 1
    Last Post: 01-17-2006, 04:35 PM
  7. [SOLVED] text plus date and time
    By Kelly in forum Excel General
    Replies: 2
    Last Post: 12-12-2005, 02:45 PM
  8. Replies: 0
    Last Post: 08-23-2005, 12:24 PM

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