Interpolation?

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
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

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.

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,209
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,209
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,143,919
Messages
5,721,536
Members
422,369
Latest member
redinator

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