Looking up a value on a table based on both column headings and rows

XLmuppet

New Member
Joined
Aug 13, 2014
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I want to write a forumla that will return a value based on both column headings and rows. My table has "Quantities" in the colum headings, i.e >1, >10 and >20 and duration in the row labels, i.e 1 year , 2 years, 3 years etc. I want to put in two values to a cell which are "how many are required" and "how long are they required for" the output value should be able to look up a price in the table based on these criteria. i.e i wish to have a quantity of 15 for a period of 2 years would return the result in the greater than 10 column and the 2 years row. There are only three columns and 4 rows. Please can someone help?

Min Volume (From)11040
Period
1 Year£10£9£8
2 years£9£8£7
3 years£8£7£6
4 years£7£6£5
Input Volume =xx
input Period =yy
Result =ZZ
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
How about
Fluff.xlsm
ABCD
1Min Volume (From)11040
2Period
31 Year£10£9£8
42 years£9£8£7
53 years£8£7£6
64 years£7£6£5
7
8Input Volume =15
9input Period =2 years
10Result =8
Data
Cell Formulas
RangeFormula
B10B10=INDEX(B3:D6,XMATCH(B9,A3:A6),XMATCH(B8,B1:D1,-1))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,077
Messages
6,122,992
Members
449,094
Latest member
masterms

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