+ Reply to Thread
Results 1 to 9 of 9

Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy hh:mm

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Bozeman, MT
    MS-Off Ver
    Excel 2010
    Posts
    10

    Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy hh:mm

    Request date Assigned date Request-Assigned
    7/27/2017 8:33 7/27/2017 8:38

    I want to understand in days, hours, minutes format what the difference is between Request date and Assigned date (so, third column would be the request date minus the assigned date to see how long it took to assign the task). Thanks!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    What should be the expected result and in which format?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Bozeman, MT
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    Result would be days, hours, minutes. Thanks!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    And the result is in your example?

    And what would be the format of the result.

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    Bozeman, MT
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    From looking on excel help sites, it can show the format in days, hours, minutes. I essentially want to understand how much time it is taking between the two dates/times. I'm not sure what options I have. Thanks!

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    27-7-2017 08:33 27-7-2017 08:38 00:05:00

    c1= b1-a1

    the cell is formated as hh:mm:ss

  7. #7
    Registered User
    Join Date
    12-04-2013
    Location
    Bozeman, MT
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    It's just giving "#" in the output cell. I entered =A1-B1 in C1 and chose that custom format.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    you did not used my formula.

    The assigned data needs to be greater (bigger) than the request data.

    So the formula needs to be b1-a1 instead of a1-b1 (your formula)

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Formula for days,hours,mins difference b/t two dates/times in this format mm/dd/yyyy h

    Quote Originally Posted by WVbzn View Post
    It's just giving "#" in the output cell. I entered =A1-B1 in C1 and chose that custom format.
    Excel will display any negative time as ############, so you have to do a calculation that results in a positive time.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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] Difference between 2 days and times, including only working hours
    By ollyr in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-16-2016, 08:45 AM
  2. Calculate difference between two dates and times in "days, hrs, mins
    By Rajatka in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2013, 03:41 PM
  3. calculate difference between two dates and times in "days, hrs, mins, secs"
    By mankit87 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-03-2013, 04:27 AM
  4. Need difference between two dates/times in hours
    By ramsdesk in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-25-2013, 01:25 PM
  5. [SOLVED] Date format problem using a formula in VBA to calculate difference between times and dates
    By alicebrewer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2012, 03:13 AM
  6. Replies: 10
    Last Post: 01-05-2011, 06:30 AM
  7. [SOLVED] Formula Help - Time Difference in Days, Hours Mins & Seconds
    By Shashi Bhosale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2006, 05:10 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