Interpolation?

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,459
From the table below, if I had known values of 230000 and 10.5, how can I come up with a value of 38.75?
Book2
ABCD
110.011.012.0
222000040.037.535.0
324000040.037.535.0
426000045.042.540.0
Sheet1
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Assuming 230000 is in cell A6 and 10.5 is in cell B5:

=AVERAGE(INDEX(B2:D4,MATCH(A6,A2:A4,1),MATCH(B5,B1:D1,1)),INDEX(B2:D4,MATCH(A6,A2:A4,1)+1,MATCH(B5,B1:D1,1)),INDEX(B2:D4,MATCH(A6,A2:A4,1),MATCH(B5,B1:D1,1)+1),INDEX(B2:D4,MATCH(A6,A2:A4,1)+1,MATCH(B5,B1:D1,1)+1))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
On 2002-09-08 00:51, Andrew Poulsom wrote:
Assuming 230000 is in cell A6 and 10.5 is in cell B5:

=AVERAGE(INDEX(B2:D4,MATCH(A6,A2:A4,1),MATCH(B5,B1:D1,1)),INDEX(B2:D4,MATCH(A6,A2:A4,1)+1,MATCH(B5,B1:D1,1)),INDEX(B2:D4,MATCH(A6,A2:A4,1),MATCH(B5,B1:D1,1)+1),INDEX(B2:D4,MATCH(A6,A2:A4,1)+1,MATCH(B5,B1:D1,1)+1))

Andrew,

That's great. I believe it can be shortened to:

=AVERAGE(INDEX(B2:D4,MATCH(A6,A2:A4),MATCH(B5,B1:D1)),INDEX(B2:D4,MATCH(A6,A2:A4)+1,MATCH(B5,B1:D1)+1))

Aladin
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
On 2002-09-08 01:29, Andrew Poulsom wrote:
Aladin,

Would your formula work for 250000 and 10.5?

Results in 41.25 like yours.

Addendum. We need to add some control to the formula for values outside the table:

=IF(AND(B5>=B1,B5<=D1,A6>=A2,A6<=A4),AVERAGE(INDEX(B2:D4,MATCH(A6,A2:A4),MATCH(B5,B1:D1)),INDEX(B2:D4,MATCH(A6,A2:A4)+1,MATCH(B5,B1:D1)+1)),"NoValue")
This message was edited by aladin akyurek on 2002-09-08 06:28
 

Forum statistics

Threads
1,181,461
Messages
5,930,071
Members
436,718
Latest member
messa57fr

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
Top