Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default time sheet help

I need to analyze the hours worked by employees on certain days off to
determine how many hours, during what would be their normal shift time,
that they actually worked. Here's how I have the columns: A= Time
started, B= time finished, C= the total hours worked, D= normal shift
time start, E= normal shift end time. If someone works from 3:00 AM
(3:00) until 9:00 AM (9:00), leaves but is recalled at 2:00 PM (14:00)
until 5:00 PM (17:00), and the normal shift time is 7:00 AM (7:00) until
3:PM (15:00), F= what formula will capture the hours worked between 7:00
AM and 3:00 PM? I would likely have the room to capture such split
times worked in another column if need be.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default time sheet help


John Smith wrote:
I need to analyze the hours worked by employees on certain days off to
determine how many hours, during what would be their normal shift time,
that they actually worked. Here's how I have the columns: A= Time
started, B= time finished, C= the total hours worked, D= normal shift
time start, E= normal shift end time. If someone works from 3:00 AM
(3:00) until 9:00 AM (9:00), leaves but is recalled at 2:00 PM (14:00)
until 5:00 PM (17:00), and the normal shift time is 7:00 AM (7:00) until
3:PM (15:00), F= what formula will capture the hours worked between 7:00
AM and 3:00 PM? I would likely have the room to capture such split
times worked in another column if need be.



Hello John,
Here is how you would set it up. I hope this helps....

A = 9:00 AM Start Time
B = 5:45 PM End Time
C = '=(B2<A2)+B2-A2' Hours Worked
D =
'=IF(B2=A2,MAX(0,MIN(B2,"16:30")-MAX(A2,"8:00")),MAX(0,"16:30"-MAX(A2,"8:00"))+MAX(0,MIN(B2,"16:30")-"8:00"))'
(Hours Worked or in this case (CORE HOURS=8:00 - 4:30 PM)
E = '=(B2<A2)+B2-A2 - D2' (Prime time hours or hours worked outside
core hours.)

Try that..mess around with the formula to make it work for you and let
me know the results.

Have a great day!
Jenni

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default time sheet help

Thanks Jenni,
I did as you suggested and customized it to correspond with the times
pertinent to my shifts and it worked great. I am having a bit of a
challenge with the cell formatting when converting from time to decimal.
When multiplied by 24, the sum is the hours plus 24 (ie: 6:00 hours
shows as 30.0). Do you have a solution for this?
John



Jenn wrote:
John Smith wrote:
I need to analyze the hours worked by employees on certain days off to
determine how many hours, during what would be their normal shift time,
that they actually worked. Here's how I have the columns: A= Time
started, B= time finished, C= the total hours worked, D= normal shift
time start, E= normal shift end time. If someone works from 3:00 AM
(3:00) until 9:00 AM (9:00), leaves but is recalled at 2:00 PM (14:00)
until 5:00 PM (17:00), and the normal shift time is 7:00 AM (7:00) until
3:PM (15:00), F= what formula will capture the hours worked between 7:00
AM and 3:00 PM? I would likely have the room to capture such split
times worked in another column if need be.



Hello John,
Here is how you would set it up. I hope this helps....

A = 9:00 AM Start Time
B = 5:45 PM End Time
C = '=(B2<A2)+B2-A2' Hours Worked
D =
'=IF(B2=A2,MAX(0,MIN(B2,"16:30")-MAX(A2,"8:00")),MAX(0,"16:30"-MAX(A2,"8:00"))+MAX(0,MIN(B2,"16:30")-"8:00"))'
(Hours Worked or in this case (CORE HOURS=8:00 - 4:30 PM)
E = '=(B2<A2)+B2-A2 - D2' (Prime time hours or hours worked outside
core hours.)

Try that..mess around with the formula to make it work for you and let
me know the results.

Have a great day!
Jenni

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default time sheet help

Hi Jenni,
As noted, the formula that you suggested is a hit. If I may, I'll add
another kick. If the hours worked (C) is greater than 5.5 hours, I need
to deduct a one half hour break. Do I do this with an additional column
or can this be incorporated into the formula that I am using? Also,
when I convert the hours to decimal they add 24.0. I corrected this by
subtracting 24.0 at the end of the formula but when the cell amount
should be 0.0, it reads -24. Is there a trick to correct this?



Jenn wrote:
John Smith wrote:
I need to analyze the hours worked by employees on certain days off to
determine how many hours, during what would be their normal shift time,
that they actually worked. Here's how I have the columns: A= Time
started, B= time finished, C= the total hours worked, D= normal shift
time start, E= normal shift end time. If someone works from 3:00 AM
(3:00) until 9:00 AM (9:00), leaves but is recalled at 2:00 PM (14:00)
until 5:00 PM (17:00), and the normal shift time is 7:00 AM (7:00) until
3:PM (15:00), F= what formula will capture the hours worked between 7:00
AM and 3:00 PM? I would likely have the room to capture such split
times worked in another column if need be.



Hello John,
Here is how you would set it up. I hope this helps....

A = 9:00 AM Start Time
B = 5:45 PM End Time
C = '=(B2<A2)+B2-A2' Hours Worked
D =
'=IF(B2=A2,MAX(0,MIN(B2,"16:30")-MAX(A2,"8:00")),MAX(0,"16:30"-MAX(A2,"8:00"))+MAX(0,MIN(B2,"16:30")-"8:00"))'
(Hours Worked or in this case (CORE HOURS=8:00 - 4:30 PM)
E = '=(B2<A2)+B2-A2 - D2' (Prime time hours or hours worked outside
core hours.)

Try that..mess around with the formula to make it work for you and let
me know the results.

Have a great day!
Jenni

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
Data from two sheets make up real time list in the new sheet?? Vedad Excel Worksheet Functions 7 September 20th 06 08:22 AM
time sheet determination of what day and time rate Oldjay Excel Worksheet Functions 1 September 12th 06 10:13 AM
time sheet to calculate 2 different columns John Sullivan Excel Worksheet Functions 1 October 21st 05 06:48 AM
Excel formula for a time sheet HRMSN Excel Worksheet Functions 1 August 10th 05 03:07 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM


All times are GMT +1. The time now is 03:34 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"