Hi all,
I would like to create a workflow that identifies three consecutive negative or positive values across rows in a column, and then flag whether it is a negative (N) or positive (P) sequence in a separate column in the row directly after the sequence.
Furthermore, there shouldn't be any consecutive flags of the same type. This means that when a negative sequence is found, the next sequence marked can only be positive, and likewise for a positive sequence (the next flag can only be negative, even if there is another positive sequence).
| RecordID | Value | Flag |
| 1 | -234.00 | |
| 2 | 123.00 | |
| 3 | 43.00 | |
| 4 | 25.00 | |
| 5 | -235.00 | P |
| 6 | -22.00 | |
| 7 | -356.00 | |
| 8 | -3524.00 | N |
| 9 | -45.00 | |
| 10 | -654.00 | |
| 11 | -345.00 | |
| 12 | 7543.00 | |
| 13 | 57.00 | |
| 14 | 56.00 | |
| 15 | 9534.00 | P |
| 16 | -736.00 | |
| 17 | 426.00 | |
| 18 | -65.00 | |
I was thinking of using a multi-row formula with nested if statements, but I can't seem to get the "no consecutive flags of the same type" part right. Any and all help is appreciated, thank you.