Hi
I would do this by a function
in the Absence bucket put something like
=SUMPRODUCT(--(LEFT($A3:$E3,1) = "I"),VALUE(RIGHT($A3:$E3,1)))
I presumed the monday to friday data was located in the columns A to E
in the Vacation bucket put
=SUMPRODUCT(--(LEFT($A3:$E3,1) = "A"),VALUE(RIGHT($A3:$E3,1)))
and in your total line put
40 - sick bucket - vacation bucket
HTH
David