Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 12 hour shift timesheet calculation

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 12 hour shift timesheet calculation

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 12 hour shift timesheet calculation

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 12 hour shift timesheet calculation

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default 12 hour shift timesheet calculation

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 12 hour shift timesheet calculation

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shift Differential TimeSheet Formulas Sophia Excel Worksheet Functions 10 May 9th 23 11:46 AM
Indentify Shift number in 24 hour period mikebres Excel Worksheet Functions 5 May 19th 08 08:46 PM
How do i use a 24 hour clock format on my timesheet? grant Excel Worksheet Functions 2 January 14th 08 04:15 AM
24 Hour Format For Timesheet faisca_aem Excel Discussion (Misc queries) 3 June 30th 06 03:05 AM
Timesheet calculation Dawn Excel Worksheet Functions 1 November 5th 04 05:14 PM


All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"