Lookup value from matrix based on 3 search parameters

HR909

New Member
Joined
Dec 16, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

i'm having three search values for the combination of which i want to retrieve a valeu from a price matrix. The search values are length, widht and weight. Based on those search values i want to find the row in the price matrix with measurements that do not exceed the lenght, width or weigth of my input variables.

Here the example:
INDEX Beispiel.jpg


In the example the row 3 in the price matrix is the first row where length, widht and weigth are all higher than my inputs.

What would be the best way to retrieve the price automatically based on my input variables?

I'm stuck with INDEX and MATCH but not getting anywhere with that.

Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi and welcome to MrExcel

NOTE XL2BB:
For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with, rather that a picture.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Example:
Dante Amor
ABCDEFGHIJ
1InputsPrice Matrix
2LengthWidthWeightPriceLengthWidthWeightPrice
310.504.002.004.0010.004.002.002.00
410.004.003.003.00
516.006.002.004.00
617.007.003.005.00
Sheet4
Cell Formulas
RangeFormula
D3D3=IFERROR(SMALL(IF(($G$3:$G$6>=A3)*($H$3:$H$6>=B3)*($I$3:$I$6>=C3),$J$3:$J$6),1),"None")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks a lot! Works perfectly. Will pay attention to the form to upload sample data.
 
Upvote 0
Hi and welcome to MrExcel

NOTE XL2BB:
For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with, rather that a picture.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Example:
Dante Amor
ABCDEFGHIJ
1InputsPrice Matrix
2LengthWidthWeightPriceLengthWidthWeightPrice
310.504.002.004.0010.004.002.002.00
410.004.003.003.00
516.006.002.004.00
617.007.003.005.00
Sheet4
Cell Formulas
RangeFormula
D3D3=IFERROR(SMALL(IF(($G$3:$G$6>=A3)*($H$3:$H$6>=B3)*($I$3:$I$6>=C3),$J$3:$J$6),1),"None")
Press CTRL+SHIFT+ENTER to enter array formulas.
Great formula!
Another possibility:
Excel Formula:
=MINIFS($J$3:$J$6,$G$3:$G$6,">="&A4,$H$3:$H$6,">="&B4,$I$3:$I$6,">="&C4)
The new 365 functions make some things so easy (although I'm not crazy about the weird syntax needed for the Criteria here!)
 
Upvote 0
Yet another option.

22 12 19.xlsm
ABCDEFGHIJ
1InputsPrice Matrix
2LengthWidthWeightPriceLengthWidthWeightPrice
310.54.02.04.0010.04.02.02.00
43.05.02.55.0010.04.03.03.00
516.37.22.0None16.06.02.04.00
617.07.03.05.00
Price
Cell Formulas
RangeFormula
D3:D5D3=INDEX(FILTER(J3:J6,(G3:G6>=A3)*(H3:H6>=B3)*(I3:I6>=C3),"None"),1)
 
Upvote 0
Or just a straight XLOOKUP
Excel Formula:
=XLOOKUP(1,  ($G$3:$G$6>=A3)*($H$3:$H$6>=B3)*($I$3:$I$6>=C3),  $J$3:$J$6, "None")
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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