Hello,
I need to find the minimum difference between any two elements in a row or a column. While it's easy to do for a 3-4 elements by doing subtractions for all elements in the array, doing it for more elements leads to a very long formula.
For example, I need to find the difference between any two elements between C5 and C9:
=MIN(ABS(C5-C6), ABS(C5-C7), ABS(C5-C8), ABS(C5-C9), ABS(C6-C7), ABS(C6-C8), ABS(C6-C9), ABS(C7-C8), ABS(C7-C9), ABS(C8-C9))
Is there a better way of doing it?
MIN(ABS(C5:C8-C6:C9)) finds the minimum difference of two consecutive elements, so I can't use that (OK, I can reduce a few operations, but that's not the point).
Thank You in advance.
Bookmarks