Selected a cell depending on 2 factors

Josh88

New Member
Joined
Sep 7, 2017
Messages
15
Hi,

I have 2 elements that I would like to use to find the final result. I have quantity and length, upon which I am looking for price per unit. Here is a table of the information with quantity along the X axis and length down the Y:
[TABLE="class: cms_table_grid, width: 350, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]2500[/TD]
[TD]5000[/TD]
[TD]10,000[/TD]
[TD]15,000[/TD]
[/TR]
[TR]
[TD]78m[/TD]
[TD]0.76[/TD]
[TD]0.73[/TD]
[TD]0.71[/TD]
[TD]0.70[/TD]
[/TR]
[TR]
[TD]90m[/TD]
[TD]0.84[/TD]
[TD]0.81[/TD]
[TD]0.79[/TD]
[TD]0.78[/TD]
[/TR]
[TR]
[TD]92m[/TD]
[TD]0.85[/TD]
[TD]0.82[/TD]
[TD]0.81[/TD]
[TD]0.80[/TD]
[/TR]
</tbody>[/TABLE]


I would like to have an automated calculation whereby I can build a basic info box containing the number of units required and their length, and the matching unit price is inserted.

[TABLE="class: cms_table_grid, width: 300, align: left"]
<tbody>[TR]
[TD]Number of Units[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Length[/TD]
[TD]90m[/TD]
[/TR]
[TR]
[TD]Price per unit[/TD]
[TD] -???-[/TD]
[/TR]
</tbody>[/TABLE]



Thank you very much Excel wizards!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

I have 2 elements that I would like to use to find the final result. I have quantity and length, upon which I am looking for price per unit. Here is a table of the information with quantity along the X axis and length down the Y:
[TABLE="class: cms_table_grid, width: 350, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]2500[/TD]
[TD]5000[/TD]
[TD]10,000[/TD]
[TD]15,000[/TD]
[/TR]
[TR]
[TD]78m[/TD]
[TD]0.76[/TD]
[TD]0.73[/TD]
[TD]0.71[/TD]
[TD]0.70[/TD]
[/TR]
[TR]
[TD]90m[/TD]
[TD]0.84[/TD]
[TD]0.81[/TD]
[TD]0.79[/TD]
[TD]0.78[/TD]
[/TR]
[TR]
[TD]92m[/TD]
[TD]0.85[/TD]
[TD]0.82[/TD]
[TD]0.81[/TD]
[TD]0.80[/TD]
[/TR]
</tbody>[/TABLE]


I would like to have an automated calculation whereby I can build a basic info box containing the number of units required and their length, and the matching unit price is inserted.

[TABLE="class: cms_table_grid, width: 300, align: left"]
<tbody>[TR]
[TD]Number of Units[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Length[/TD]
[TD]90m[/TD]
[/TR]
[TR]
[TD]Price per unit[/TD]
[TD] -???-[/TD]
[/TR]
</tbody>[/TABLE]



Thank you very much Excel wizards!

=INDEX(Sheet1!$B$2:$E$4,MATCH(B2,Sheet1!$A$2:$A$4,0),MATCH(B1,Sheet1!$B$1:$E$1,0))

where the first table is in Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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