Hi
I have values in five different cells scattered across my excel sheet and I want to find the pair of those values that gives the smallest difference.
Assuming I have the value in a1, b1, c1, d1 and e1
Then I test the difference as follows
E.g. a1-b1 = 0.50
a1-d1 = 0.53
b1-c1 = 0.49
c1-d1 = 0.31
a1-e1 = 0.48
b1-e1 = 0.45
c1-e1 = 0.32
d1-e1 = 0.53
looking at the answers in column a2, such that a2 equals the formula that gives the smallest answer (In this case the formula in a2 must select c1-d1 because the answer is 0.31 which is the smallest of all the answers. The point is if the values in a1,b1,c1,d1,e1 changes respectively, the formula in a2 will be different as the smallest answer would have changed also for the pairs of values tested.
I will appreciate suggestion how to figure out such an excel function (in a2 for instance)
I have values in five different cells scattered across my excel sheet and I want to find the pair of those values that gives the smallest difference.
Assuming I have the value in a1, b1, c1, d1 and e1
Then I test the difference as follows
E.g. a1-b1 = 0.50
a1-d1 = 0.53
b1-c1 = 0.49
c1-d1 = 0.31
a1-e1 = 0.48
b1-e1 = 0.45
c1-e1 = 0.32
d1-e1 = 0.53
looking at the answers in column a2, such that a2 equals the formula that gives the smallest answer (In this case the formula in a2 must select c1-d1 because the answer is 0.31 which is the smallest of all the answers. The point is if the values in a1,b1,c1,d1,e1 changes respectively, the formula in a2 will be different as the smallest answer would have changed also for the pairs of values tested.
I will appreciate suggestion how to figure out such an excel function (in a2 for instance)