Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Pat
 
Posts: n/a
Default Making a timesheet!!!

How can I, just by inserting work period eg 8 16, afterwards in 2 cells see
all hours between 18 and 22 and hours between 22 and 5:15? Eg as written he
working time evening hours night hours
Patricia 12 20 2 0
Maria 16 24 4 2
-Where I only have to write the working time and excel calculates the
rest... I'm really having difficulties. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Making a timesheet!!!

Pat wrote:
How can I, just by inserting work period eg 8 16, afterwards in 2
cells see all hours between 18 and 22 and hours between 22 and 5:15?
Eg as written he working time evening hours night
hours
Patricia 12 20 2 0
Maria 16 24 4 2
-Where I only have to write the working time and excel calculates the
rest... I'm really having difficulties. Thanks!


if 12=12:00 and 24=midnight, how do you plan on entering minutes?


  #3   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Making a timesheet!!!

Pat wrote:
How can I, just by inserting work period eg 8 16, afterwards in 2
cells see all hours between 18 and 22 and hours between 22 and 5:15?
Eg as written he working time evening hours night
hours
Patricia 12 20 2 0
Maria 16 24 4 2
-Where I only have to write the working time and excel calculates the
rest... I'm really having difficulties. Thanks!


Assuming that you enter the times as

12:00 20:00
16:00 00:00

Columns A & B, then these formulas should hopefully do what you want:
For evening hours:
=IF((MIN(B2,TIME(22,0,0))-MAX(TIME(18,0,0),A2))*240,(MIN(B2,TIME(22,0,0))-MAX(TIME(18,0,0),A2))*24,0)

For night hours:
=IF((MIN(IF(B2<=TIME(5,15,0),B2+1,B2),1+TIME(5,15, 0))-MAX(TIME(22,0,0),A2))*240,(MIN(IF(B2<=TIME(5,15,0 ),B2+1,B2),1+TIME(5,15,0))-MAX(TIME(22,0,0),A2))*24,0)


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
Timesheet Help. Rounding to the nearest 1/4 John Excel Worksheet Functions 7 March 2nd 06 07:06 PM
displaying selected items from a yearplanner in a timesheet James Excel Discussion (Misc queries) 0 October 22nd 05 04:30 PM
making a timesheet bobbyd Excel Worksheet Functions 1 February 10th 05 07:44 PM
overtime on timesheet kimmyrt Excel Worksheet Functions 4 January 26th 05 07:33 PM
timesheet with running total of overtime kimmyrt Excel Worksheet Functions 2 January 26th 05 06:15 PM


All times are GMT +1. The time now is 10:39 PM.

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

About Us

"It's about Microsoft Excel"