So I've got this code I copied and modified from another post to count consecutive 1's and list them out how many times each consecutive amount occurs.
X groups of 2 consecutive, X groups of 3 consecutive...Etc
if this is my input:
I get and output of(the top row I typed and the first column doesn't really matter):![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
I need to do this for 217 rows from B2:NB2 to B218:NB218. Any help is appreciated!![]()
Please Login or Register to view this content.
Later I will also have to list the largest consecutive group for each row if you have any ideas for that. I'm basically a VBA noob but I have a strong history of programming in many other languages.
P.S. Also how would I clear those cells before I write the numbers...currently if I run it multiple times it keeps summing with the values currently in those cells.
Bookmarks