Hello, I have a problem, I’m 63 and I can’t see through it anymore.

I have an ods spreadsheet, which calculates the past days, hours, minutes and seconds, etc. from a certain date to TODAY and TOMORROW.

I would like a formula in cell Y that checks whether cell E-U contains a number that has at least a 4-digit sequence (i.e. 0123, or 6789, or any sequence of 4 consecutive numbers), or if there is a 666 or 888 can be formed from the numbers in a line E-U. If so, cell Z should say “YES”.

As a proactive example, on February 12, 2023, the seconds U4 result in 1297615800, from which a 56789012 sequence can be formed. Since there are at least 4 in a row, there should be a “YES” in Z4.

Which one of you is smart enough to solve the problem, unfortunately I’m not? Thanks

P.S.: MS Office Sheet shows some errors but these numbers are not important: