Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 -- Biff Microsoft Excel MVP "dspohn" wrote in message ... 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. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That works great. I was making it way to complicated. Thank you
"T. Valko" wrote: 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 -- Biff Microsoft Excel MVP "dspohn" wrote in message ... 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. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "dspohn" wrote in message ... That works great. I was making it way to complicated. Thank you "T. Valko" wrote: 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 -- Biff Microsoft Excel MVP "dspohn" wrote in message ... 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. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
=abs(ending time-beg time)*12 -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "dspohn" wrote in message ... 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. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thats works too. Thanks for the help
"dspohn" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shift Differential TimeSheet Formulas | Excel Worksheet Functions | |||
Indentify Shift number in 24 hour period | Excel Worksheet Functions | |||
How do i use a 24 hour clock format on my timesheet? | Excel Worksheet Functions | |||
24 Hour Format For Timesheet | Excel Discussion (Misc queries) | |||
Timesheet calculation | Excel Worksheet Functions |