mgirvin
Well-known Member
- Joined
- Dec 15, 2005
- Messages
- 1,245
- Office Version
- 365
- Platform
- Windows
Dear Smartest Excelers In The World,
Someone ask me this question and I am struggling to find an answer:
Data has 0s and 1s in cells A2:A21. I need a formula that will find the start position of the of the most consecutive 1s.
Since the most consecutive 1s is 4 and it starts in position 13, the formula should evaluate to 13. In the below example, the first yellow 1 is in position 13.
Any ideas?
[TABLE="width: 48"]
<colgroup><col style="width: 48pt;" width="64">
<tbody>[TR]
[TD="class: xl65, width: 64, bgcolor: transparent"]Numbers[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
Someone ask me this question and I am struggling to find an answer:
Data has 0s and 1s in cells A2:A21. I need a formula that will find the start position of the of the most consecutive 1s.
Since the most consecutive 1s is 4 and it starts in position 13, the formula should evaluate to 13. In the below example, the first yellow 1 is in position 13.
Any ideas?
[TABLE="width: 48"]
<colgroup><col style="width: 48pt;" width="64">
<tbody>[TR]
[TD="class: xl65, width: 64, bgcolor: transparent"]Numbers[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: yellow, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent, align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]