Forum Discussion
alex201280
Jun 19, 2020Copper Contributor
Formula calculating earnings during one shift when three different rates of pay apply
Start End Hours Earnings 10:00:00 20:00:00 10:00:00 08:00:00 18:00:00 10:00:00 15:00:00 00:00:00 09:00:00 10:00:00 20:00:00 10:00:00 10:00:00 20:00:00 10:...
- Jun 20, 2020
First I'd define rates for this and next days as
Next day is in bold here.
With that formula could be
=SUMPRODUCT( IF($B3>$H$3:$H$7,0, IF($G$3:$G$7>($C3+1*($C3<$B3)), 0, IF(($C3+1*($C3<$B3))>$H$3:$H$7,$H$3:$H$7,($C3+1*($C3<$B3)))- IF($B3>$G$3:$G$7,$B3,$G$3:$G$7) ) )*$I$3:$I$7)*24
alex201280
Jun 21, 2020Copper Contributor
SergeiBaklan
Jun 21, 2020Diamond Contributor
alex201280 , you are welcome