Look up on X & Y Axis

chester_Muchea

New Member
Joined
Sep 3, 2017
Messages
2
I have a spreadsheet that I am trying to find multiple information.

Firstly I want to look up a number equal on the left hand column for floor length. Say I want a floor that is 10.3 long then I want it to grab the greater number, eg 10.5, then I want it to do the same across the other axis. eg. 3.5, therefore it would go to 3.6 and give me a cost of $5,200.

Secondary I need it then to go over to the 'Donuts required per slab' and pick the corresponding number, in this cast 4. I guess a Vlookup?

Thanks for you help

[TABLE="width: 611"]
<colgroup><col><col span="3"><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Floor Length[/TD]
[TD]3.00[/TD]
[TD]3.30[/TD]
[TD]3.45[/TD]
[TD]3.60[/TD]
[TD]4.20[/TD]
[TD]4.80[/TD]
[TD="colspan: 2"]Donuts required per slab[/TD]
[/TR]
[TR]
[TD]16.0[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD] $ 6,200.00[/TD]
[TD] $ - [/TD]
[TD] $ - [/TD]
[TD]3.5[/TD]
[TD]5.0[/TD]
[/TR]
[TR]
[TD]15.0[/TD]
[TD] $5,300.00[/TD]
[TD] $5,300.00[/TD]
[TD] $5,350.00[/TD]
[TD] $ 5,400.00[/TD]
[TD] $ 5,500.00[/TD]
[TD] $5,500.00[/TD]
[TD]3.2[/TD]
[TD]5.0[/TD]
[/TR]
[TR]
[TD]14.5[/TD]
[TD] $5,300.00[/TD]
[TD] $5,300.00[/TD]
[TD] $5,350.00[/TD]
[TD] $ 5,400.00[/TD]
[TD] $ 5,500.00[/TD]
[TD] $ - [/TD]
[TD]3.1[/TD]
[TD]5.0[/TD]
[/TR]
[TR]
[TD]14.4[/TD]
[TD] $5,300.00[/TD]
[TD] $5,300.00[/TD]
[TD] $5,350.00[/TD]
[TD] $ 5,400.00[/TD]
[TD] $ 5,500.00[/TD]
[TD] $ - [/TD]
[TD]3.1[/TD]
[TD]5.0[/TD]
[/TR]
[TR]
[TD]14.0[/TD]
[TD] $5,250.00[/TD]
[TD] $5,250.00[/TD]
[TD] $5,300.00[/TD]
[TD] $ 5,350.00[/TD]
[TD] $ 5,450.00[/TD]
[TD] $ - [/TD]
[TD]3.0[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]13.5[/TD]
[TD] $5,250.00[/TD]
[TD] $5,250.00[/TD]
[TD] $5,300.00[/TD]
[TD] $ 5,350.00[/TD]
[TD] $ 5,450.00[/TD]
[TD] $ - [/TD]
[TD]2.8[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]13.2[/TD]
[TD] $5,200.00[/TD]
[TD] $5,200.00[/TD]
[TD] $5,250.00[/TD]
[TD] $ 5,300.00[/TD]
[TD] $ 5,400.00[/TD]
[TD] $ - [/TD]
[TD]2.8[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]13.0[/TD]
[TD] $5,200.00[/TD]
[TD] $5,200.00[/TD]
[TD] $5,250.00[/TD]
[TD] $ 5,300.00[/TD]
[TD] $ 5,400.00[/TD]
[TD] $ - [/TD]
[TD]2.7[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]12.5[/TD]
[TD] $5,200.00[/TD]
[TD] $5,200.00[/TD]
[TD] $5,250.00[/TD]
[TD] $ 5,300.00[/TD]
[TD] $ 5,400.00[/TD]
[TD] $ - [/TD]
[TD]2.6[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]12.0[/TD]
[TD] $5,150.00[/TD]
[TD] $5,150.00[/TD]
[TD] $5,200.00[/TD]
[TD] $ 5,250.00[/TD]
[TD] $ 5,350.00[/TD]
[TD] $ - [/TD]
[TD]2.5[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]11.5[/TD]
[TD] $5,150.00[/TD]
[TD] $5,150.00[/TD]
[TD] $5,200.00[/TD]
[TD] $ 5,250.00[/TD]
[TD] $ 5,350.00[/TD]
[TD] $ - [/TD]
[TD]2.3[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]11.0[/TD]
[TD] $5,100.00[/TD]
[TD] $5,100.00[/TD]
[TD] $5,150.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ 5,300.00[/TD]
[TD] $ - [/TD]
[TD]2.2[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]10.8[/TD]
[TD] $5,100.00[/TD]
[TD] $5,100.00[/TD]
[TD] $5,150.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ 5,300.00[/TD]
[TD] $ - [/TD]
[TD]2.2[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]10.5[/TD]
[TD] $5,100.00[/TD]
[TD] $5,100.00[/TD]
[TD] $5,150.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ 5,300.00[/TD]
[TD] $ - [/TD]
[TD]2.1[/TD]
[TD]4.0[/TD]
[/TR]
[TR]
[TD]10.0[/TD]
[TD] $5,050.00[/TD]
[TD] $5,050.00[/TD]
[TD] $5,100.00[/TD]
[TD] $ 5,150.00[/TD]
[TD] $ 5,250.00[/TD]
[TD] $ - [/TD]
[TD]2.0[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]9.6[/TD]
[TD] $5,050.00[/TD]
[TD] $5,050.00[/TD]
[TD] $5,100.00[/TD]
[TD] $ 5,150.00[/TD]
[TD] $ 5,250.00[/TD]
[TD] $ - [/TD]
[TD]1.9[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]9.5[/TD]
[TD] $5,050.00[/TD]
[TD] $5,050.00[/TD]
[TD] $5,100.00[/TD]
[TD] $ 5,150.00[/TD]
[TD] $ 5,250.00[/TD]
[TD] $ - [/TD]
[TD]1.8[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]9.0[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.7[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]8.5[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.6[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]8.4[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.6[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]8.0[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.5[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]7.5[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.3[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]7.2[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.3[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]7.0[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.2[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]6.5[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.1[/TD]
[TD]3.0[/TD]
[/TR]
[TR]
[TD]6.0[/TD]
[TD] $5,000.00[/TD]
[TD] $5,000.00[/TD]
[TD] $5,050.00[/TD]
[TD] $ 5,100.00[/TD]
[TD] $ 5,200.00[/TD]
[TD] $ - [/TD]
[TD]1.0[/TD]
[TD]2.0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Let K2 house 10.3, a (row) look up value of interest.

Let L2 house 3.5, a (column/header) look up value of interest.

In M2 enter:

=VLOOKUP(INDEX($A$2:$A$27,MATCH($K2,$A$2:$A$27,-1)),$A$2:$G$27,1+MATCH(INDEX($B$1:$G$1,MATCH($L2,$B$1:$G$1,1)+(LOOKUP($L2,$B$1:$G$1) < $L2)),$B$1:$G$1,0),0)

And, by the way, care to describe how you obtain 4 from the range in H:I?
 
Upvote 0
Let K2 house 10.3, a (row) look up value of interest.

Let L2 house 3.5, a (column/header) look up value of interest.

In M2 enter:

=VLOOKUP(INDEX($A$2:$A$27,MATCH($K2,$A$2:$A$27,-1)),$A$2:$G$27,1+MATCH(INDEX($B$1:$G$1,MATCH($L2,$B$1:$G$1,1)+(LOOKUP($L2,$B$1:$G$1) < $L2)),$B$1:$G$1,0),0)

And, by the way, care to describe how you obtain 4 from the range in H:I?


That works perfectly.

In relation to the 2nd part of the question. What ever the answer is from the first part, i need to then go to column 'I' and find the number. Column 'H' is not important for the answer.

Again, thank you for your help
 
Upvote 0
That works perfectly.

Great.

In relation to the 2nd part of the question. What ever the answer is from the first part, i need to then go to column 'I' and find the number. Column 'H' is not important for the answer.

Not sure I'm getting this. Do you mean something like the following?

=VLOOKUP(INDEX($A$2:$A$27,MATCH($K2,$A$2:$A$27,-1)),$A$2:$I$27,9,0)

Again, thank you for your help

You are welcome.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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