Can we have a formula for finding the maximum count in an excel range. For e.g If an employee has worked more than 6 days consecutively then it should give me 1 or else 0.

Example: In the below e.g the employee has been present consecutively for 9 days. In this case the formula must give me “1”.

EMP ID Name 1-Mar 2-Mar 3-Mar 4-Mar 5-Mar 6-Mar 7-Mar 8-Mar 9-Mar 10-Mar 11-Mar 12-Mar 13-Mar 14-Mar 15-Mar 16-Mar 17-Mar 18-Mar
Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed
Jack hadley WO P P P WO P P P P P P P P P WO P P P