S
sonar
Hi,
I have the following:
CD18 = text column
CB18 = my overtime
CC18 = my night time
(IF((CD18)<>"",0,(IF(OR(BW18=0,BX18=0),0,(IF(BW18<TIME(7,0,0),TIME(7,0,0)-BW18,0))+(IF(BX18>TIME(19,0,0),BX18-TIME(19,0,0),0))))))
]
My scenario:
Person works 8hrs per day. When he works 10hrs, 2 hrs are cal. a
overtime. But if the 2hrs falls after 7pm or before 7pm, it also form
part of the night time calculation. however, in this situation if it i
both overtime and night time rate, overtime rate takes precedence eg
1.5, and not 1.10.
Need to do the following:
I need my CC18 column to look at my CB18 column and assess if there i
overtime, then to assess if its more or less than my night hour
calculated in column (CC18), after that - deduct the lesser of the tw
from the greater of the two.
Why I need help:
I have tried this, but I am not sure if it refuses to work due t
looping ( or reference to same cell that is), or something I am doin
wrong.
'www.epping.co.za/register.xls' (http://www.epping.co.za/register.xls
=IF((CD18)<>"",0,(IF(CB18>(IF(OR(BW19=0,BX19=0),0,(IF(BW19<TIME(7,0,0),TIME(7,0,0)-BW19,0))+(IF(BX19>TIME(19,0,0),BX19-TIME(19,0,0),0)))),(CB18-(IF(OR(BW19=0,BX19=0),0,(IF(BW19<TIME(7,0,0),TIME(7,0,0)-BW19,0))+(IF(BX19>TIME(19,0,0),BX19-TIME(19,0,0),0))))),((IF(OR(BW19=0,BX19=0),0,(IF(BW19<TIME(7,0,0),TIME(7,0,0)-BW19,0))+(IF(BX19>TIME(19,0,0),BX19-TIME(19,0,0),0))))-CB18))))
Please hel
I have the following:
CD18 = text column
CB18 = my overtime
CC18 = my night time
(IF((CD18)<>"",0,(IF(OR(BW18=0,BX18=0),0,(IF(BW18<TIME(7,0,0),TIME(7,0,0)-BW18,0))+(IF(BX18>TIME(19,0,0),BX18-TIME(19,0,0),0))))))
]
My scenario:
Person works 8hrs per day. When he works 10hrs, 2 hrs are cal. a
overtime. But if the 2hrs falls after 7pm or before 7pm, it also form
part of the night time calculation. however, in this situation if it i
both overtime and night time rate, overtime rate takes precedence eg
1.5, and not 1.10.
Need to do the following:
I need my CC18 column to look at my CB18 column and assess if there i
overtime, then to assess if its more or less than my night hour
calculated in column (CC18), after that - deduct the lesser of the tw
from the greater of the two.
Why I need help:
I have tried this, but I am not sure if it refuses to work due t
looping ( or reference to same cell that is), or something I am doin
wrong.
'www.epping.co.za/register.xls' (http://www.epping.co.za/register.xls
=IF((CD18)<>"",0,(IF(CB18>(IF(OR(BW19=0,BX19=0),0,(IF(BW19<TIME(7,0,0),TIME(7,0,0)-BW19,0))+(IF(BX19>TIME(19,0,0),BX19-TIME(19,0,0),0)))),(CB18-(IF(OR(BW19=0,BX19=0),0,(IF(BW19<TIME(7,0,0),TIME(7,0,0)-BW19,0))+(IF(BX19>TIME(19,0,0),BX19-TIME(19,0,0),0))))),((IF(OR(BW19=0,BX19=0),0,(IF(BW19<TIME(7,0,0),TIME(7,0,0)-BW19,0))+(IF(BX19>TIME(19,0,0),BX19-TIME(19,0,0),0))))-CB18))))
Please hel