Jul 20 2024 11:30 AM - edited Jul 20 2024 11:41 AM
Good evening,
I am trying to create a holiday tracker to track my colleagues holiday allowance.
So my plan is the following.
Cell A1 hours Used
Cell B1 hours remaining
Cell C1 Annual holiday Allowance
So now let say the holiday allowance is 265. John Smith booked 10 hours so that 10 hours will be deducted from the 265 which would be 255. This part is easy enough just by doing
=SUM(A1-C1)
But the problem I have got is if John Smith booked a 5-hour holiday a few weeks later, and you updated the cell "Hours Used" from 10 hours to 5 hours, the total would be then 260. But realistically, it should be 250 instead due to previous holiday . So my question is how would I go about doing this. Any help or advice would be highly appreciated.
Thank you
Jul 20 2024 11:52 AM
Subtracting within the same cell is tricky:
I'd do it - for example - like this:
The formulas in column B are:
You can fill down the formula from B3 downwards.
Jul 20 2024 12:16 PM