Attached is a small sheet where the identical expression copied down row by row identifies an error when it encounters SOME consecutive numbers.
The errors occur in column V so the other cells are just referencing the error.
Small.ods (22.7 KB)
The “SOURCE” data is simply a MENU>Sheet>Fill cells>Fill Random Number …uniform Integer - Min 1 - Max 10 - NO Seed - Enable Rounding - Zero Decimals. Feel free to re-seed and verify that all data is generated by LO.
As you can see L6:M6 generates an error as do L7:M7 & L10:M10 but other consecutives at L2:M2 & L8:M8 which are both natural and reversed order don’t generate the error. In fact if L11:M11 is manually adjusted to match L2:M2 the error is generated on that row but not row 2.
Also, manually amending SOME of the numbers in F:J to create consecutive numbers will generate the error.