=IF(C13>=$C$12,C12,D14-D14)
This what I have so far. For employees the total hours being 40 for the week. Employee #1 works 45 hours but took off 2 hours. Employee #2 works 35 hours, had taken off 5 hours.
| Jan |
Chargeable |
Hours worked |
Absent |
| Work Week Hours |
40 |
|
|
| Employee #1 |
40 |
45 |
2 |
| Employee #2 |
30 |
35 |
5 |
Total hours billable for Employee #1 should be 40 and the (B3) total hours worked is 45(C3) and would ignored the 2 hours off (D3) because he worked overtime to made up for it.
But for Employee #2 he worked 35(C4) hours and did not work 5(D4) hours so that is shown in (B3).
I have the formula in column B, but would like the be 40 minus the absent hour(if any) or stay at 40 other wise.
I have tried to make it clear as i can, any help would be great.
Thanks,
Frank