Return a value if there are 3 or more consecutive rows

Xy019

New Member
Joined
Oct 26, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi! I need help in finding 3 or more consecutive rows. I have until row 40000 (most are blank but data will be entered in the future)

On COL AF - values will only be 0 and 1, I need to return a value if there are 3 or more consecutive 1s on COL AF

1698306824243.png


Any input would be great!

Thank you!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
not the most elegant

Book1
AB
10
20
31X
41X
51X
61X
71X
81X
90 
101 
110 
121X
131X
141X
150 
Sheet1
Cell Formulas
RangeFormula
B3:B15B3=IF(OR(SUM(A1:A3)=3,SUM(A2:A4)=3,SUM(A3:A5)=3),"X","")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:A15Expression=OR(SUM(A1:A3)=3,SUM(A2:A4)=3,SUM(A3:A5)=3)textNO
Cell Formulas
RangeFormula
B3:B15B3=IF(OR(SUM(A1:A3)=3,SUM(A2:A4)=3,SUM(A3:A5)=3),"X","")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top