Hi
I need the formula for max frequency or similar to this, Problem statement is - I have an attendance record of 1 month in which I need to calculate a repeated occurrence. let's say.. if Mr. ABC is present (P) from 1-April to 7 April, and then on his Week off day he was present then the outcome for the present should be 8.
I'm using this formula but it is giving me output only for P
ArrayFormula((MAX(FREQUENCY(IF(B2:H2="P",COLUMN(B2:H2)),IF(B2:H2<>"P",COLUMN(B2:H2))))))
I need the formula for max frequency or similar to this, Problem statement is - I have an attendance record of 1 month in which I need to calculate a repeated occurrence. let's say.. if Mr. ABC is present (P) from 1-April to 7 April, and then on his Week off day he was present then the outcome for the present should be 8.
I'm using this formula but it is giving me output only for P
ArrayFormula((MAX(FREQUENCY(IF(B2:H2="P",COLUMN(B2:H2)),IF(B2:H2<>"P",COLUMN(B2:H2))))))
Name | 1 May | 2 May | 3 May | 4 May | 5 May | 6 May | 7 May | Total P (Consecutive) Result | Total P (ConsecutiveP+WOP) final result |
ABC | P | P | P | WOP | P | A | P | 3 | 5 |