Table interpolation

ponedelj

New Member
Joined
Mar 12, 2024
Messages
10
Office Version
  1. 2021
Platform
  1. Windows
Hi. So im looking for formula to interpolate X and Y axis and to find interpolated value in table.

For example on top row 1.5 and side colum1.77 should give interpolate value in the table.
 
No. Its possible the value is not in table. It need to calculate between. For example X=1.453 and Y=1.753.
Thats why this makes everything very complex
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
No. Its possible the value is not in table. It need to calculate between. For example X=1.453 and Y=1.753.
Thats why this makes everything very complex
What calculation should it perform then if the values are not in the table?
 
Upvote 0
Use this to first find values on Y axis and same but only turned to Row to find X value. But for that i need new table. Maybe there is easier way? Also this formula dont work so well if its 0 or max value


=FORECAST(C3,OFFSET(interpol_array,MATCH($C3,lookup_array,1)-1,0,2),OFFSET(lookup_array,MATCH($C3,lookup_array,1)-1,0,2))
 
Upvote 0
Can you post a sample of your data? Or is it the table you already posted? The formula by itself is not enough for me to go on.
 
Upvote 0
I did something like this a long time back, see here:


I tried to update it with newer functions, but it still came out pretty complicated:

Book1
ABCDEFGHIJKLMNO
111.11.21.31.41.51.61.71.81.9XYValue
21.71.71.872.042.212.382.552.722.893.063.231.421.7752.5347
31.711.711.8812.0522.2232.3942.5652.7362.9073.0783.249
41.721.721.8922.0642.2362.4082.582.7522.9243.0963.268
51.731.731.9032.0762.2492.4222.5952.7682.9413.1143.287
61.741.741.9142.0882.2622.4362.612.7842.9583.1323.306
71.751.751.9252.12.2752.452.6252.82.9753.153.325
81.761.761.9362.1122.2882.4642.642.8162.9923.1683.344
91.771.771.9472.1242.3012.4782.6552.8323.0093.1863.363
101.781.781.9582.1362.3142.4922.672.8483.0263.2043.382
111.791.791.9692.1482.3272.5062.6852.8643.0433.2223.401
Sheet5
Cell Formulas
RangeFormula
O2O2=LET(x,XMATCH(N2,A2:A11,-1),f,CHOOSE({1;2},FORECAST(M2,OFFSET(B2:K2,x,0),B1:K1),FORECAST(M2,OFFSET(B2:K2,x+1,0),B1:K1)),FORECAST(N2,f,OFFSET(A2:A11,XMATCH(N2,A2:A11,-1)-1,0,2)))


You should manually calculate a few to be sure it's right. I got one of the calculations backward, but I think it's fixed. Essentially, the formula finds the 2 rows surrounding the Y variable (rows 9 and 10 in this example), and interpolates the values on those rows using the X variable. Then given those 2 results, it interpolates again, using those results and the Y variable and the values in A9:A10.
 
Last edited:
Upvote 0
It should find the values in between. For example x=1.453 y=1.753
So for X1,Y1 1.4, 1.75 value are 2.45, for
X1,Y2 1.4, 1.76 value is 2.464,
X2,Y1 1.5,1.75 value is 2.625
X2,Y2 1.5,1.76 value is 2.64 so the Z value lies between thous 4 figures which are calculate by 3rd inerpolation.

(The values on X and Y axis are not related to Table, i mean u can not calculate Z by multiplying some X or Y value. Only by intepolation!)
 
Upvote 0

Forum statistics

Threads
1,221,875
Messages
6,162,563
Members
451,775
Latest member
Aiden Jenner

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