I have a row of numbers, say, 1 2 3 (each number is in separate column, of course). I want to calculate the average difference between all values. This means that I would calculate all the differences: 1-2=-1, 1-3=-2 and 2-3=-1, and after that I take the average of the differences: (-1-2-1)/3=-1,333.... Is there a function that could do this? I would also calculate the largest and smallest (closest to 0) of these values as well as the median difference.
I tried to calculate the average as =AVERAGE((C3:J3)-(B3:I3)), when the values are in rows B-J but this does not give the same answer when I calculate the thing manually. Does anyone know how to do this? Doing this manually requires a massive amount of work that is not practical by any means.
EDIT:
There are 9 columns, I would like to calculate the difference between each possible combination of the values (but only in one direction) and then the average of those values.