Hi all,
Hope someone can please help with this as I've spent hours scratching my head.
I'm looking for a formula that calculates the green values in the J column (which I've added in manually). I need the formula to please find the longest streak in the row of consecutive instances of the same positive integer value, i.e. consecutive blank cells are not counted.
The integer itself with the longest streak in each column isn't known, nor am I interested in knowing this - just the length of the longest unbroken sequence of that integer, please.
Hope that makes sense, and thanks in advance!
Hope someone can please help with this as I've spent hours scratching my head.
I'm looking for a formula that calculates the green values in the J column (which I've added in manually). I need the formula to please find the longest streak in the row of consecutive instances of the same positive integer value, i.e. consecutive blank cells are not counted.
A | B | C | D | E | F | G | H | I | J | |
1 | 2 | 4 | 4 | 4 | 3 | |||||
2 | 1 | 2 | 5 | 5 | 5 | 5 | 5 | 5 | 4 | |
3 | 2 | 3 | 2 | 6 | 6 | 6 | 2 | 3 | 2 | 3 |
The integer itself with the longest streak in each column isn't known, nor am I interested in knowing this - just the length of the longest unbroken sequence of that integer, please.
Hope that makes sense, and thanks in advance!