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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,215,206
Messages
6,123,638
Members
449,109
Latest member
Sebas8956

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