Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel Formula For Consecutive Values

I am trying to come up with a formula that puts an "OK" value in my Notes tab if the row has 2 or more consecutive 1 values. My rows have many more columns that just up to "N", this is just a screenshot I am using to try and make my question clearer.

I am admittedly a very novice excel user. Can anyone help me out here?

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Thought I’d try a different approach.

TEXTJOIN("|",FALSE,$J2:$N2) will stick all the cells together separated by a pipe character.
If two cells contain a 1 you’ll get a 1|1 returned somewhere within the resulting text string, so you just need to find that.

=IF(ISNUMBER(FIND("1|1",TEXTJOIN("|",FALSE,$J2:$N2))),"OK","")

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading