12 hour shift timesheet calculation

D

dspohn

I am creating a timesheet for our 24 hour operation and I have run into
difficulty when the work shift crosses over midnight. The formula works
perfect when the shift starts at 7:00 am but when the shifts start at 7:00 pm
and crosses over midnight it shows -12 hours worked for the shift.

Shifts are always changing so the same person can be on nights and days
during the same pay period. Do I need to include the date in this
calculation?

Thanks for your help.
 
T

T. Valko

Try this...

A1 = start time = 7:00 PM
B1 = end time = 7:00 AM

=MOD(B1-A1,1)

Formatted as h:mm retruns 12:00

=MOD(B1-A1,1)*24

Formatted as General or Number returns 12
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top