Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi everyone,
I'm trying to to create a payroll using rosters but I am having trouble trying to define different rates with certain times For example, if a person works from 19:00 - 0:00 they will get $1 extra and if they work between 0:00 and 7:00 they will get $2 extra. So if they're rostered for 18:00 - 8:00 they should effectively get $5 + $14 = $19 extra The problem i am having is that i cant seem to calculate the hours properly. It has been suggested i should if statements like =IF(A1 * 24 7, IF(A1 * 24 19, "1", "0"), "2") or using lookup tables but they only calculate the rate you get for a certain hour and using only 1 cell reference. I think the easiest way is to calculate the number of hours that will get you extra pay from the start and finish time as long as it is between those specified hours. because after you work that out all you have to do is multiply that with the extra money and then sum it up. If anyone has any ideas on how i could achieve this it would be greatly appreciated. Thanks! |