Forum Discussion

Peter1550's avatar
Peter1550
Copper Contributor
Jun 07, 2019
Solved

Advanced formula to show number movement

Hi, I am looking for a formula to represent the difference between digit movement, the lowest difference would be 0 and the highest 5 the result would be taken from 2 columns eg. A    B 7    16 =...
  • Twifoo's avatar
    Jun 07, 2019
    You may try this formula:
    =MIN(ABS(RIGHT(A2)-RIGHT(B2)),
    RIGHT(A2)+10-RIGHT(B2),
    RIGHT(B2)+10-RIGHT(A2),
    5)

Resources