lookup using multiple values

borolo222

New Member
Joined
Aug 18, 2009
Messages
42
Hi, I have a range containing a list of parts that are selected according to its length and weight capacity, each having a different reference, like this...

col A col B col C col D
length(in) ____ min weight(lb) ___max weight(lb) ___Reference
7 ___________ 4_______________ 8______________ 7-1
7 ____________8______________ 11______________ 7-2
7 ___________10______________ 12______________ 7-3
8 ____________5______________ 9_______________ 8-1
8 ____________9_____________ 12_______________ 8-2
8 ___________12_____________ 14_______________ 8-3

...and so on
so then i have a cell that has the length and another that has the weight requiered..
cel1: 8(length)
cel2:10 (weight)
it has to return me the value reference of column d: 8-2.

thanks for your help.
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try...

Control+shift+enter, not just enter:

=INDEX($D$2:$D$7,MATCH(1,IF($A$2:$A$7=J2,IF(K2>=$B$2:$B$7,IF($C$2:$C$7>=K2,1))),0))
 
Upvote 0
Thanks aladin, worked like a charm.
i need to learn to use the index function, where can i learn to use this function?

thanks very much.
 
Upvote 0
Thanks aladin, worked like a charm.
i need to learn to use the index function, where can i learn to use this function?

thanks very much.

Excel's Help... Examples from the threads on this board.

BTW, it's the combined action with MATCH and IF that is important here.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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