Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Counting different workinghour types

I have a problem
Itry to calculate with excel how much night hours evening hours i have done
example
Working hours are starting time in c7 15:30 and end time D7 23:59 and if i
get extra pay between 18:00 and 21:00 how can i calculate these hours in
evening bonuses
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Counting different workinghour types

Total hours worked (formula in E7) =D7-C7 Hours outside evening
time (formula in F7) =(TIME(18,0,0)-C7)+(D7-TIME(21,0,0))
Hours during evening time (formula in G7) =E7-F7
With 15:30 and 23:59, we get
8:29
5:29
3:00
Or one formula
=(D7-C7)-((TIME(18,0,0)-C7)+(D7-TIME(21,0,0)))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Wanderer" wrote in message
...
I have a problem
Itry to calculate with excel how much night hours evening hours i have
done
example
Working hours are starting time in c7 15:30 and end time D7 23:59 and if i
get extra pay between 18:00 and 21:00 how can i calculate these hours in
evening bonuses



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Counting different workinghour types

Thank you for your solution, but when I tryed it in hours C7 0:00 D7 19:30
it gave me answer 3:00 and it should be 1:30 there is somthing i missed when
i tryed to alter the formula so it would calculate above mentioned problem.

"Bernard Liengme" wrote:

Total hours worked (formula in E7) =D7-C7 Hours outside evening
time (formula in F7) =(TIME(18,0,0)-C7)+(D7-TIME(21,0,0))
Hours during evening time (formula in G7) =E7-F7
With 15:30 and 23:59, we get
8:29
5:29
3:00
Or one formula
=(D7-C7)-((TIME(18,0,0)-C7)+(D7-TIME(21,0,0)))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Wanderer" wrote in message
...
I have a problem
Itry to calculate with excel how much night hours evening hours i have
done
example
Working hours are starting time in c7 15:30 and end time D7 23:59 and if i
get extra pay between 18:00 and 21:00 how can i calculate these hours in
evening bonuses




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
Excel 2007 error "some chart types cannot be combined with other chart types. Select a different chart types" roadsidetree Charts and Charting in Excel 15 June 2nd 09 10:53 AM
Counting the number of Error Types Bob Excel Worksheet Functions 3 November 16th 06 06:01 PM
Encryption Types Werner Rohrmoser Excel Discussion (Misc queries) 0 August 5th 05 07:31 AM
For all you finance types... citizens1stbank Excel Discussion (Misc queries) 0 July 14th 05 10:45 PM
new chart types Birdie Charts and Charting in Excel 4 February 21st 05 04:03 AM


All times are GMT +1. The time now is 04:17 AM.

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"