Hi,
I thought I had my formula working, but after further testing is doesn't.
I am trying to calculate a late shift penality in cell AL7. Basically if an employee works between 19 and midnight then for any hours which fall into this period should be paid $1.65 for every hour worked.
Start time is in cell M7, finish time is in cell N7, total hours worked is in cell P7. The $1.65 is in cell AL5.
The formula I have so far, which I can't seem to get to work is =IF(AND(M7<19,N7>19),((N7-19))*$AL$5,IF(AND(M7>=19,N7<=24),Z7*$AL$5,0))
Can anyone help solve this please.
Cheers
Bookmarks