Finding a price in a price table

Rammaz94

New Member
Joined
Jun 21, 2016
Messages
2
For a table like this;

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Width[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Drop[/TD]
[TD]1000[/TD]
[TD]1200[/TD]
[TD]1400[/TD]
[TD]1600[/TD]
[TD]1800[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]1000[/TD]
[TD]£5[/TD]
[TD]£10[/TD]
[TD]£15[/TD]
[TD]£20[/TD]
[TD]£25[/TD]
[TD]£30[/TD]
[/TR]
[TR]
[TD]1500[/TD]
[TD]£10[/TD]
[TD]£15[/TD]
[TD]£20[/TD]
[TD]£25[/TD]
[TD]£30[/TD]
[TD]£35[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]£15[/TD]
[TD]£20[/TD]
[TD]£25[/TD]
[TD]£30[/TD]
[TD]£35[/TD]
[TD]£40[/TD]
[/TR]
</tbody>[/TABLE]

How could I type in a width x drop and return a price

eg:

Width Drop Price
1050 1300 £15
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
how does that work exactly
width = 1050
so does it use the closest higher value - so using the 1200 column
and
drop
1300
so again nearest higher value - so the 1500 row
intersect is £15

is so could the table be backwards

see attached
=INDEX($J$2:$O$4, MATCH(A2,$I$2:$I$4,-1), MATCH(B2,$J$1:$O$1,-1))

https://www.dropbox.com/s/a6q2mutj5sm2bw4/etaf_lookup.xlsx?dl=0
 
Last edited:
Upvote 0
Yeah, it would move to the nearest higher value.

So I would need to reverse the widths and drops to go from highest to lowest?
 
Upvote 0
if you open the link i posted , you will see it working
Its probably possible to do it without changing the table order - but that was the first thing that came to mind
other members may have a better solution
 
Upvote 0
Can you use something like this? Hope this helps.


Excel 2012
ABCDEFGH
1100012001400160018002000
21000123456
31500789101112
42000131415161718
5
6Width10508
7Drop1300
Sheet1
Cell Formulas
RangeFormula
D6{=SMALL(IF($C$1:$H$1>=$B$6,IF($B$2:$B$4>=$B$7,$C$2:$H$4)),1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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