+ Reply to Thread
Results 1 to 4 of 4

Compare hours difference to total time as number

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Compare hours difference to total time as number

    Okay, I could really use some help. I'm trying to compare total payroll times that were summed together as a number in one report to another set of data that has as an date/time fields like the following example:

    Start End Diff
    8/31/2012 6:10 AM 8/31/2012 7:19 PM 13:09:44

    The "total payroll" hours were 11.5 hours.

    I need to find out how to compare the two in an Excel table. I'm using the formula =IF([@[Total Payroll]]<MOD([@end]-[@start],1), MOD([@end]-[@start],1), "") in my table. This only works if there were NOT any "Total Payroll" hours.
    *** Basically, people were working off the clock ***

    The result should be 13.16 - 11.5 = 1.66


    Any thoughts?

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Compare hours difference to total time as number

    Is it because you haven't subtracted "Total payroll":
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ?

    Cheers
    <-- If you're happy & you know it...click the star.:-)

  3. #3
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Compare hours difference to total time as number

    Thanks, I think I have it working.

    I needed to extract the time value from the date/time value and then do a difference, multiple the difference x 24.

  4. #4
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Compare hours difference to total time as number

    Thanks, I think I have it working.

    I needed to extract the time value from the date/time value and then do a difference, multiple the difference x 24.

+ 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. Difference in hours between two date/time columns
    By lcomeaux in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-29-2016, 04:56 PM
  2. [SOLVED] Time in Time format and text foramt - Finding the Hours difference
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 07:14 AM
  3. Difference between time in hours
    By cqwer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2013, 01:43 PM
  4. Time difference exceeding 24 hours
    By TSM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2012, 06:53 AM
  5. [SOLVED] Decimal Time to Hours and Minutes over 24 hours in total
    By FlyingTiger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2012, 06:18 AM
  6. Time Difference in hours between two date time stamps
    By Cipher in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2010, 10:24 AM
  7. [SOLVED] calculate difference in time to hours
    By Chris in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-18-2005, 03:06 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