+ Reply to Thread
Results 1 to 6 of 6

Time calculation

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Time calculation

    Hi, please help with a formula to calculate time period as in the attachment.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Time calculation

    for that example
    =MOD(D5-B5,1) gives 10:00 cell formatted hh:mm
    if you want a decimal number of hours
    =MOD(D5-B5,1)*24 cell formatted general
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Time calculation

    =(c5+d5)-(a5+b5)
    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.

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Time calculation

    Hi,
    =TEXT((D5-B5),"h:mm")

    Punnam

  5. #5
    Registered User
    Join Date
    07-04-2014
    Location
    china
    MS-Off Ver
    2010
    Posts
    3

    Re: Time calculation

    hope to help u~
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Time calculation

    i'm with special k here i didn't notice it was 2 days

    so the answer should be 34 hours 9:30 to 9:30 is 24 , 9:30 to 19:30 is 10 total 34
    so as special k said =(c5+d5)-(a5+b5) format cells [hh]:mm to get 34:00
    or
    =((C5+D5)-(A5+B5))*24 format cells general to get 34

+ 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. Payroll time sheet calculation where time exceeds 24 hours
    By Rolo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2014, 08:57 AM
  2. [SOLVED]Time/Date calculation to check response time
    By tailz in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-01-2013, 10:20 AM
  3. TIME Calculation Difference in between Time Windows IF, AND
    By sonny.thind in forum Excel General
    Replies: 0
    Last Post: 09-20-2011, 10:00 AM
  4. Replies: 11
    Last Post: 05-20-2011, 02:09 PM
  5. Specific time period calculation from a time range
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:44 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