I need to create a formula which will return overtime/lesser-time of employees based upon time duration.
I want to put the formula in column Q.
The requirement is such that -
I have entered the following formula but it is not working.
=IF(O6<>0,((IF(AND(D6<>"Contractor",O6>8),O6-8,8-O6),IF(AND(D6="Contractor",O6>12),O6-12,12-`O6))),0)`
这应该适合你:
=IF(O6=0,0,IF(D6="Contractor",IF(O6>12,O6-12,12-O6),IF(O6>8,O6-8,8-O6)))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.