Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dtmd
 
Posts: n/a
Default vlookup and calculation questions

I am working to re-design the emergency timesheets for those deployed for
Hurricane duty. They work 12 hour days. Each location gives a Tour of Duty
which will determine how overtime is broken down. I have scheduled overtime,
unschedule overtime, and overtime with night differential as well as the
regular 8 hour day. I need to set something up that will allow them to input
their set TOD (i.e. 0600-1830) and then the clock hours they work (checking
in and out for lunch) and be able to break out the hours from there in the
appropriate columns. For instance - if a TOD is 0600-1830 - the hours would
break out as follows for M-F:

0600-1200 - 6 RG
1230-1530 - 3 RG
1530-1800 - 3.5 OS
1800-1830 - .5 OS/ND

Now lets say they decided to work until 2100 that night. I would have to
then add:
1830-2100 2.5 OU

So - the TOD determines the break out of the OT hours, but the clock hours
determine the amounts and if any Unscheduled Overtime is necessary.

How would I set this up?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David McRitchie
 
Posts: n/a
Default vlookup and calculation questions

Hi ...,
The formula for the difference between start and stop
=C2-B2+(B2C2)
The part in parens is a logical expression returning 0 or 1
-- 1 day is 24 hours so if B2 is greater than C2 then 24 hours are added.

If you have a time in hours and minutes shown as Excel time -- h:mm
and want to convert that to a decimal number with a decimal fraction multiply Excel time by 24.

For time entry without the colons see Chip Pearson's page:
Dates Quick Entry: http://www.cpearson.com/excel/DateTimeEntry.htm

For an example of a time sheet see (also see John Walkenbach's example)
Working With Overtime Hours In Excel : http://www.cpearson.com/excel/overtime.htm

Anything you want to know about date and time can probably be found in
http://www.cpearson.com/excel/datetime.htm
http://www.mvps.org/dmcritchie/excel/datetime.htm

And I'm sure it does not apply to your question but VLOOKUP is covered in
http://www.mvps.org/dmcritchie/excel/vlookup.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"dtmd" wrote in message ...
I am working to re-design the emergency timesheets for those deployed for
Hurricane duty. They work 12 hour days. Each location gives a Tour of Duty
which will determine how overtime is broken down. I have scheduled overtime,
unschedule overtime, and overtime with night differential as well as the
regular 8 hour day. I need to set something up that will allow them to input
their set TOD (i.e. 0600-1830) and then the clock hours they work (checking
in and out for lunch) and be able to break out the hours from there in the
appropriate columns. For instance - if a TOD is 0600-1830 - the hours would
break out as follows for M-F:

0600-1200 - 6 RG
1230-1530 - 3 RG
1530-1800 - 3.5 OS
1800-1830 - .5 OS/ND

Now lets say they decided to work until 2100 that night. I would have to
then add:
1830-2100 2.5 OU

So - the TOD determines the break out of the OT hours, but the clock hours
determine the amounts and if any Unscheduled Overtime is necessary.

How would I set this up?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David McRitchie
 
Posts: n/a
Default vlookup and calculation questions

One think I left out, was if you were to total time as hh:mm down
a column you would want to format the totals as [h]:mm to keep the
hours from overflowing into days.


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
VLOOKUP and multiple columns Dan Belcher Excel Discussion (Misc queries) 6 September 17th 05 11:47 AM
Vlookup Calculation Issue cvolkert Excel Worksheet Functions 0 September 7th 05 02:28 AM
VLOOKUP using a cell calculated with NOW returns Error Chris Berding Excel Worksheet Functions 2 August 21st 05 03:22 AM
Calculation Bug? ICE9 Excel Discussion (Misc queries) 2 June 8th 05 03:44 AM
how do you add vlookup results? Anna Excel Worksheet Functions 3 March 26th 05 03:05 AM


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