Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding/subtracting time in Excel 2013

Status
Not open for further replies.

pendle666

Technical User
Jan 30, 2003
295
GB
Hello

I've put together a basic timesheet - time in, time out, breaks taken.

The addition of time worked over the week is fine. It's the calculation of the time worked over the period that's the problem.

Each 4 week work period is 148 hours.

The person will normally work 37 hours.

So in period 1 if O18 is 147:03 and O19 is 148:00 then O20 is 0:57 - the worker owes 57 minutes.

But in period 2, 018 is 150:15 and O19 is 148:00 but all I'm getting in O20 is #####, it's not calculating that the worker has done extra hours.

I've had a look on Google, but it all looks rather complicated. At the end of the year I want to add up all the period totals to see if the worker owes time or needs to be paid for extra time.

Can anyone assist?



thank you for helping

____________
Pendle
 
Hi,

A negative Date/Time value will be displayed as #######.

Use an IF() function to make the determination and display the time value appropriately.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
THank you.

Can you tell me what I need to put in the IF statement? =IF(O20= ?????

thanks

thank you for helping

____________
Pendle
 
No worries - I've sorted it! THank you for your help

thank you for helping

____________
Pendle
 
If expression < 0 ....

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
just a quick addition to this - you can also set calculation to use 1904 date system in xl's options

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top