5 pts.
 Function with hours & minutes involved
Any ideas on how to do the following:

I have a payroll spreadsheet that has columns that show the clock in and clock out time that I formatted the cell to give me miliatary time.  I then have a "sum" column that subtracts one from the other to give me thetotal hours/minutes worked.  I have two of these per date because we work different jobs in one day and I want to create a cell that will take these 2 "summed" columns that have the resulting time worked and add them together and tell me if there is more than 8 hours (for OT sake) and if so, how much more than 8 hours:

Example: summed column A1 says 4:30 and B1 says 5:30

I want the Function column to add A1 and B1 and if it comes out to be more than 8 hours total, I want it to come back with how many hours over 8 it is -- in this case it would be 2 hours more than 8 hours.

Can this be done!



Software/Hardware used:
Excel 2007 and Vista and HP Desktop
ASKED: May 7, 2010  2:38 AM
UPDATED: May 7, 2010  2:48 PM

Answer Wiki:
If i understand correctly, something like this should work: <pre>=IF(A1+B1>TIME(8,0,0),A1+B1-"8:00","0:00")</pre> -CarlosDL -----------
Last Wiki Answer Submitted:  May 7, 2010  2:48 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _