+ Reply to Thread
Results 1 to 4 of 4

Extract Time(HR MIN)from Date

  1. #1
    Registered User
    Join Date
    06-18-2016
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    6

    Extract Time(HR MIN)from Date

    I tried to find the solution, but none of them fit my need.

    I want to Extract Hour and Min from a Date. (Not for display)
    I need it able to compare with "time"

    Thanks
    Last edited by hoalahpi; 06-20-2016 at 07:23 AM. Reason: Problem solved

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Extract Time(HR MIN)from Date

    Apply MOD() to the cell....
    =mod(cell-ref,1)
    format as time
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-18-2016
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    6

    Re: Extract Time(HR MIN)from Date

    I am doing it in VBA, but you remind me I can just use plus-minus signs .

    Thanks

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Extract Time(HR MIN)from Date

    Good stuff, glad you got it resolved

+ 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. extract time from date/time for sorting
    By always Stumped in forum Excel General
    Replies: 3
    Last Post: 01-22-2015, 08:20 PM
  2. Extract date and time from a string
    By pickslides in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-19-2014, 09:07 PM
  3. [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
  4. How can I extract an undated time value from a date/time field?
    By NPB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-06-2013, 08:47 AM
  5. [SOLVED] Extract a time from a cell with date and time stamp and then perform calculations
    By Marcos Aristotelous in forum Excel General
    Replies: 3
    Last Post: 10-31-2012, 04:36 AM
  6. Replies: 4
    Last Post: 12-02-2011, 02:41 PM
  7. Replies: 4
    Last Post: 03-23-2010, 12:44 PM
  8. Extract time and date from 1 cell
    By jaywizz in forum Excel General
    Replies: 3
    Last Post: 09-24-2009, 07:49 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