Forum Discussion

Batman-379's avatar
Batman-379
Copper Contributor
Jan 18, 2023
Solved

Employee Absence Schedule - Record Sickness Spells - I am counting all 'S' easy enough

Hi  I am counting all 'S' easy enough which gives me a total count of the sickness days taken but now i want to count up the sickness periods too.   So say Employee 1 has two consecutive days off ...
  • mtarler's avatar
    mtarler
    Jan 18, 2023
    The problem with [Employee Name] is that you change that column title to [Management] so try:
    =SUMPRODUCT((January[@[Management]:[30]]<>"S")*(January[@[1]:[31]]="S"))
    that said, this formula will treat F...M sickness as 2 separate instances not 1 long instance that spanned across the weekend unless Sa/Su are also marked "S"