Hi all.
I am running a table at work to determine who completes their work to the best standard.
I am counting the occurrences that person hits 100% continuously.
The script below works for this:
Then Crtl Shift Enter
However the issue I've found is that if someone goes on holiday or has a week off the table populates a zero or a blank and this then discounts the longest streak.
<tbody>
</tbody>
As you can see above the answer should be 5,4,5 for the longest streak of 100's However I am getting 5 3 5 because the middle guy had a holiday.
I have tried the AND statement however kept getting a value error.
Any help is appreciated please.
I am running a table at work to determine who completes their work to the best standard.
I am counting the occurrences that person hits 100% continuously.
The script below works for this:
Code:
=MAX(FREQUENCY(IF($D17:$CG17=100,COLUMN($D17:$CG17)),IF($D17:$CG17<>100,COLUMN($D17:$CG17))))
Then Crtl Shift Enter
However the issue I've found is that if someone goes on holiday or has a week off the table populates a zero or a blank and this then discounts the longest streak.
100 | 100 | 100 | 100 | 100 |
100 | 100 | 100 | 100 | |
100 | 100 | 100 | 100 | 100 |
<tbody>
</tbody>
As you can see above the answer should be 5,4,5 for the longest streak of 100's However I am getting 5 3 5 because the middle guy had a holiday.
I have tried the AND statement however kept getting a value error.
Code:
=MAX(FREQUENCY(IF($D17:$CG17=100,COLUMN($D17:$CG17)),IF(AND($D17:$CG17=100,$D17:$CG17>0),COLUMN($D17:$CG17))))
Any help is appreciated please.