Return result from 3 criteria

dazed and confused

New Member
Joined
Oct 9, 2017
Messages
2
Hello,

I've tried a couple of things, but thought I'd ask online to see if its possible, or if there is an easier way of doing things. I'm trying to put a formulae/s together to get information from a price list. I've cut the list down as it actually goes up to 9.50m (901-950), but just so it's (hopefully) easier to view I've attached it up to 4.00m (351-400)

So entering a list of sizes
thickness into column R
width into column S
length into column T

If it is 30-141mm thick i want it to check the width (Column C), and then the length (Row 4) and give me the price for that size (blue costs)

If it is 142-450mm thick i want it to check the width (Column C), and then the length (Row 9) and give me the price for that size (red costs)

The current formulae i have doesn't work completely as it's only checking width and length. I also want it to use the price for that range of lengths, so for example if it is 150 x 190mm width, it would show prices from row 11, as it is it goes to the next price down.

-in cell U4, U5 & U6
=INDEX(D5:P16,MATCH(S4,C5:C16,1),MATCH(T4,D3:P3,1))

Am I over thinking this? Anyone's help would be appreciated.


1ABCDEFGHIQRSTUV
230 - 141mm thicknessLength (m)
3Width150200250300350400thicknesswidthlengthcost
4from (mm)to (mm)000>150151>200201>250251>300301>350351>40020030090
550300100
200300
400500600200350100
6301+------300350120
7
8142-450mm thicknessLength (m)
9000>150151>200201>250251>300301>350351>400
1014118050
60708090100
1118120060708090100110
12201250708090100110120
132513008090100110120130
1430135090100110120130140
15351400100110120130140150
16401450110120130140150160

<tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Welcome to the msg board!

I'd try something like

=INDEX(($D$4:$I$5,$D$9:$I$15),MATCH($L3,INDEX(($B$4:$B$5,$B$9:$B$15),,1,1+($K3>142))),MATCH($M3,$D$2:$I$2),1+($K3>142))

The formula would be a lot shorter if both your ranges used the same rows.

The formula basically consists of two INDEX formulas with area numbers. The inner one is used to pick the correct row and the outer picks the correct price list. The $K3>142 part would be better using a cell reference instead of a fixed value but it should work nevertheless. Also, the lengths on row 3 should be "Starting from" lengths instead of "Up to"s.
 
Upvote 0
Thanks for the welcome Misca, and for the amazing help!

I didn't think i'd get a reply that quickly so i'd carried on working away at it and started using the starting length rather than the upto length. But your formulae works a treat, i can stop banging my head against my desk now, THANKS!!
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

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