View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default Need help with my timesheet? regular, 50% and 100%

If G13-F13 is lunch that should be deducted you shouldn't add it

the first 7.5 can be written

=MIN(7,5;((E13-D13-(G13-F13))*24))


between 7.5 and 10.5 can be written


=STØRST(0;MIN(10,5;((E13-D13-(G13-F13))*24))-7,5)


and all hours worked greater than 10.5


=STØRST(0;((E13-D13-(G13-F13))*24)-10,5)


--
M.v.h.


Peo Sjoblom




"Systemgulv" wrote in message
...
I,m making a timesheet for regular worktime, 50% overtime hour and 100%.

regular worktime is 7,5 hour
For this I use:
=HVIS((((E13-D13)+(G13-F13))*24)7,5;7,5;((E13-D13)+(G13-F13))*24)
NB! HVIS=IF, I think? I,m norwegian.

All hours after 7,5 is overtime, 3 hour 50% and the rest is 100%

I,ve figured out the 100% with this:
HVIS(((E13-D13)+(G13-F13))*2410,5;((E13-D13)+(G13-F13))*24-10,5;0)

All hours after 10,5 is 100%

My problem is how to get the 3 hour 50% to count.

It looks like this:
inn out inn out reg 50% 100% Total
D13 E13 F13 G13 H13 I13 J13 K13

09:00 12:00 13:00 22:00 7,5 ??? 1,5 12

I hope someone can help!