Hi all,
So I have looked for the answer for this and cannot find it. In the picture below you can see this but in column A there is 4 numbers from A2-A5, B there is 4 numbers from B2-B5, and C there is 4 numbers from C2-C5. I need to find the combination of three numbers that meet this criteria: 1) when any two numbers of the three are compared they have to be within 10% of each other 2) If more than one combination passes this test then the one result with the closest numbers passes.
Some combinations that would be compared are:
A2,B3,C4
A3,B5,C4
A2,B4,C4
A5,B2,C2
There should be 64 different combinations here...
So If I was to compare the first combination A2,B3, C4 the numbers for these cells are 9.48,8.467, and 9.061.
This combination doesn't pass the first test in that 8.467/9.48=.893; and 8.467/9.061=.934; and 9.061/9.48=.956... so the first test states that all numbers need to be within 10 percent of each other and one number is .893 so it isn't within 10 percent.
So If I was to compare the second combination A3,B5, C4 the numbers for these cells are 9.303,8.911, and 9.061.
The combination passes the first test in that 8.911/9.303=..958; and 8.911/9.061=.983; and 9.061/9.303=.974... so the first test states that all numbers need to be within 10 percent of each other and they all are. However I have to do this 62 more times to find the closest combination.
Thanks.... I am thinking I need to use an array in a formula for this to work.
Capture2.JPG
Bookmarks