Hello,
I have a column of a 1,000 randomly generated numbers where each cell shows one of two results, "1" or "-1".
I want to highlight only the cells that contain the same results of 5 or more in a row.
I also want to be able to highlight higher amounts like 8, 12 or 20 in a row.
Currently I have this formula for 5 in a row:
=OR(AND(A5=A1, A5=A2, A5=A3, A5=A4, A5=A5), AND(A5=A2, A5=A3, A5=A4, A5=A5, A5=A6), AND(A5=A3, A5=A4, A5=A5, A5=A6, A5=A7), AND(A5=A4, A5=A5, A5=A6, A5=A7, A5=A8), AND(A5=A5, A5=A6, A5=A7, A5=A8, A5=A9))
I want to know if there is a better way to do it or do I just use this basic format and keep building it out for the larger consecutive amounts I need?
Thank you.
I have a column of a 1,000 randomly generated numbers where each cell shows one of two results, "1" or "-1".
I want to highlight only the cells that contain the same results of 5 or more in a row.
I also want to be able to highlight higher amounts like 8, 12 or 20 in a row.
Currently I have this formula for 5 in a row:
=OR(AND(A5=A1, A5=A2, A5=A3, A5=A4, A5=A5), AND(A5=A2, A5=A3, A5=A4, A5=A5, A5=A6), AND(A5=A3, A5=A4, A5=A5, A5=A6, A5=A7), AND(A5=A4, A5=A5, A5=A6, A5=A7, A5=A8), AND(A5=A5, A5=A6, A5=A7, A5=A8, A5=A9))
I want to know if there is a better way to do it or do I just use this basic format and keep building it out for the larger consecutive amounts I need?
Thank you.