I have searched and studied the sumif and sumifs and still cant find an answer.
I would like help writing a formula to only total cells that produce a negative number. Example Tuesday 7.5<8 = .5
To calculate how much vacation time an employee has used.
Monday 8 hours
Tuesday 7.5 hours
Wednesday 8 hours
Thursday 8.5 hours
Friday 7 hours
In this case the total hours used .5 on Tuesday and 1.0 on Friday would be 1.5 hours of vacation used, the extra .5 hour on Thursday would be paid so it does not fall under the <8 rule.
The closest I have come is adding a column and hiding it that takes the hours in each cell worked and subtract it from 8 but it adds the positive also. So instead of the total being -1.5 the total is -1.0
8-8 =0
7.5-8 =-.5
8-8 =0
8.5-8 =.5
7-8 = -1.0
--------------
-1.0
So
1. can this be done in a single column?
2. is there a way to omit positive number from the total?
Thanks
Tim
Bookmarks