+ Reply to Thread
Results 1 to 4 of 4

Calculating Total Hours Between Two Times Past 24hr

  1. #1
    Registered User
    Join Date
    09-18-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Calculating Total Hours Between Two Times Past 24hr

    I am making a time calculator which allows me to calculate total hours worked between 2 times and have no problem with am-am or pm-pm BUT, I cannot for the life of me work out a formula that makes Excel calculate PM-AM

    for example:

    ON OFF Total Hours Worked
    11:00 13:30 2:30 <--- This is fine, Used formula =SUM(B2-A2)
    21:30 01:30 #### <---- This is where it goes wrong


    It dose not seem to want to calculate over 23:59

    I have all cells set to Customs Format [hh]:mm as I have read somewhere this may help, which it has not.

    Dose anyone know a FORMULA which i can use for the WHOLE thing as with my work I will be always adding past PM- AM times ect.


    Thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,008

    Re: Calculating Total Hours Between Two Times Past 24hr

    Try this:

    =MOD(A1-B1,1)
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calculating Total Hours Between Two Times Past 24hr

    End-Start so:

    =MOD(B2-A2,1)

  4. #4
    Registered User
    Join Date
    09-18-2009
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Calculating Total Hours Between Two Times Past 24hr

    THANK YOU ALLOT BOTH OF YOU

    That Worked.

    Kind Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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