Forum Discussion

sirwazzles's avatar
sirwazzles
Copper Contributor
Feb 18, 2023
Solved

Most # of repeats/duplicates back to back

If I have a column of cells, each cell having a 0 or a 1, how do I count the most number of repeats “back to back”? I want to know the most # of times the number 1 occurs back to back.

 

ex.

0,1,0,1,0,0,1,1,0,1,1,1,1,0,0

 

The above should return the answer as “4” because the number 1 repeats 4 times back to back.

Resources