Hello ...
Back to my favorite topic at this board.
I need help w/ constructing following logic.
Within a moving window of constant size through data (Y) that is chronologically ordered against some datetime parameter
1-Need to find Y minimum =min
2-Need to find Y maximum = max
3-Compute shift = max - min (if max was identified chronologically after min's record)
or else
shift = min- max (if max was identified chronologically before min's record)
I can do 1 and 2 within a formula but couldn't find any trick to compute the shift
formula solution is preferred but if not a script would work too. (especially if the script can work within formula window)
note: I have some urgency to calculate these tomorrow (9/2/2020), any help would be appreciated.
thx ...