Hello.I'm new one here. Could anybody help me with this?
I have a string of numbers in one cell (only 0 and 1)
I'm looking for formula which count the longest string of 0 in this string and then second longest after this (but it could not be the same).
Both answers could be in separate cells (let's say Longest one in A2 , and second longest in A3)
Example:
I have a number in cell A1: 0001100001000001000000
The answer for the longest string of zeros should be: 6
The second longest string should be: 5
2nd Example:
Number: 001001000100
Longest: 3
2nd longest: 2
3rd example:
Number: 001001001001
Longest: 2
2nd longest: 2
Many thanks
I have a string of numbers in one cell (only 0 and 1)
I'm looking for formula which count the longest string of 0 in this string and then second longest after this (but it could not be the same).
Both answers could be in separate cells (let's say Longest one in A2 , and second longest in A3)
Example:
I have a number in cell A1: 0001100001000001000000
The answer for the longest string of zeros should be: 6
The second longest string should be: 5
2nd Example:
Number: 001001000100
Longest: 3
2nd longest: 2
3rd example:
Number: 001001001001
Longest: 2
2nd longest: 2
Many thanks