Hello.
I have a row such as this:
Yes No Yes Yes Maybe Yes No No Yes Maybe No
I need to count the longest consecutive string of both Yes & Maybe. So for my example the answer is 4 (Yes Yes Maybe Yes).
Here is another example using letters:
A B C B B A B C A A C A
How would I get the max consecutive string of A & C. The answer in this example is 5 (C A A C A).
Need the formula or array.
Any help is greatly appreciated!
Bookmarks