
Originally Posted by
benoj2005
Also there could be an x in both the morning and afternoon
In my addition it will denote a 0,5 day for the morning AND a half day for the afternoon so 2 times 0,5 but your original OP was denotation can be applied to the first month.
So it does but ....
if you filled in an X in both afternoon and morning and apply it to the first month if would be more feasible to register a day leave shorter without any X which will result in the same calculation.
or ....
The yearcheck wasn't in your OP but ok try this:
Formula:
=+N((YEAR(E$1)&MONTH(E$1)=YEAR($A4)&MONTH($A4))*(($C4="x")+($D4="X"))*-0.5)
Bookmarks