Multiple Ranges with Multiple Criteria

RainGauge

New Member
Joined
Jul 15, 2021
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
I need a formula to find the most ideal row and displays that row's column 1 value.

To evaluate a row, I place the highest priority on it having the lowest value in column 3. (MIN(M3:M10)
If there is only 1 row with this lowest value then I display the value from column 1. INDEX(K3:K10,MATCH(MIN(M3:M10),M3:M10,0))

If there is more than 1 row with the lowest value in column 3 then the formula takes those rows and prioritizes the lowest value in column 2.

Again, if there is more than 1 row that meets the criteria (lowest value in column 2) I then need it to prioritize the value closest to 1 in column 1.

In the end, the formula should display the value of column 1 in the most suitable row.

In my example image, the formula would look at column 3: find row 5, row 7, and row 10 each having the lowest value (4).
It would then look at column 2: find row 7 and 10 each having the lowest value (2).
It would then look at column 1: find that row 10 has the closest value to 1 (1.25).
Finally it would display the value of column 1 of the ideal row.
The desired result in my example image is 1.25.

I'm struggling to find the correct way to structure the formula or even how to have it evaluate subsets of data.
 

Attachments

  • SampleDataset.jpg
    SampleDataset.jpg
    77.2 KB · Views: 14

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to MrExcel!

Try:

Book1
ABCDEFGHIJKLM
1
2Factor>=40%>=50%
3ZR CoefficientFactor1.0007
4a200 b1.61.251.1915
51.4534
60.9917
72.1924
82.4506
92.6416
101.2524
Sheet4
Cell Formulas
RangeFormula
D4D4=INDEX(K3:K10,MATCH(MIN(M3:M10*10000+L3:L10*100+ABS(K3:K10-1)),M3:M10*10000+L3:L10*100+ABS(K3:K10-1),0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
Thank you,
I hadn't considered multiplying the values in each range to incorporate them all into a single values for comparison.
 
Upvote 0
Yes, that's a standard trick to make the comparison easier. It's easy in this case since you wanted the smallest value in each column. If you want the smallest in one column, but in case of ties, the largest of another column, it gets trickier.

Glad I could help.
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top