Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If statement to work out time/overtime

Hi guys, I am having trouble with a formula if anybody can help please.

I have two cells A1 & B1 that holds start time and end time of work done. I then have another two cells C1 & D1. C1 is normal hours worked and D1 is overtime. I am looking for two formula's. For example lets use below data:
A1 B1
05:00 19:00

C1 should work out the time between 08:00 and 17:00 and display "09:00" hours

D1 should work out overtime, (hours worked before 08:00 and after 17:00) and display "05:00"

Ive been running around with If, And and subrtracting MAX statements but cant find one that works. Please help!
Conrad
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default If statement to work out time/overtime

... A1 & B1 that holds start time and end time of work done.

C1 should work out the time between 08:00 and 17:00

D1 should work out overtime, (hours worked before 08:00 and after 17:00)


If a shift cannot span midnight, the following might work:

C1:
=MIN(B4,TIME(17,,))-MAX(A4,TIME(8,0,))

D1:
=B4-A4-C4
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default If statement to work out time/overtime

... A1 & B1 that holds start time and end time of work done.

C1 should work out the time between 08:00 and 17:00

D1 should work out overtime, (hours worked before 08:00 and after 17:00)


If a shift cannot span midnight, the following might work:

C1:
=MIN(B1,TIME(17,,))-MAX(A1,TIME(8,0,))

D1:
=B1-A1-C1
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
Work hours with overtime Debby_Jo Excel Discussion (Misc queries) 2 July 31st 08 12:29 AM
Calculating Regular time, overtime and double time Brian Smith Excel Worksheet Functions 5 November 9th 07 10:32 PM
Detailed Time Sheet (overtime, comp time, vacation used) Robert D. Sandersfeld New Users to Excel 2 May 22nd 06 10:14 PM
Work out overtime hours for individuals Fudge New Users to Excel 3 April 26th 06 12:52 PM
Work out overtime hours for individuals Fudge New Users to Excel 13 April 10th 06 04:10 PM


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