+ Reply to Thread
Results 1 to 4 of 4

Split Date and Time

  1. #1
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287

    Split Date and Time

    Hi, i was wondering if it is possible to remove the date value within a date/time value. I know how to do this with the date value:

    =DATEVALUE(MONTH(A1) & "/" & DAY(A1) & "/" & YEAR(A1))

    but tried using the following for TIME but this does not work.

    =TIMEVALUE(HH(A1) & ":" & MM(A1) & ":" & SS(A1))

    Hope that makes.

    Thanks in advance.

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

    To get Time: =MOD(A1,1)

    You may have to reformat the result cells to Date/Time, respectively
    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
    =TIMEVALUE(HOUR(A1)&":"&MINUTE(A1)&":"&SECOND(A1))
    format cell as hh:mm:ss

  4. #4
    Forum Contributor
    Join Date
    06-16-2008
    Posts
    287
    Thanks NBVC and martindwilson, I will give that a go.

+ 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. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  2. Time & Date
    By tomicT in forum Excel General
    Replies: 3
    Last Post: 04-16-2007, 05:00 PM
  3. Date and Time Graphs
    By sach0025 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-10-2007, 01:07 AM
  4. using date & time in the x axis of a graph
    By sjhonny in forum Excel General
    Replies: 2
    Last Post: 01-18-2007, 09:39 AM
  5. Assignment overDUE PLEASE PLEASE HELP!!
    By undergrad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2006, 12:34 AM

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