Multiple Interpolation

eggyjla

Active Member
Joined
Dec 16, 2004
Messages
346
I'm attempting multiple interpolations for the table below. This is merely a sub-set of the entire table. I also have a UDF for interpolation that accepts (5) variables [X1, Y1, X2, Y2, X] and return the interpolated value [Y]. I'm uncertain how the best method of returning an interpolated value from a 2D table given three criteria. R[1], R[2], and C[1] are the criteria. How best to return a value from the table given the criteria R[1]=75; R[2]=60; C[1]=2.5
Lighting Zonal Cavity.xls
DEFGHIJKL
48080808070707070
57050301070503010
611.0921.0821.0751.0681.0771.0701.0641.059
721.0791.0661.0551.0471.0681.0571.0481.039
831.0701.0541.0421.0331.0611.0481.0371.028
941.0621.0451.0331.0241.0551.0401.0291.021
1051.0561.0381.0261.0181.0501.0341.0241.015
1161.0521.0331.0211.0141.0471.0301.0201.012
1271.0471.0291.0181.0111.0431.0261.0171.009
1381.0441.0261.0151.0091.0401.0241.0151.007
1491.0401.0241.0141.0071.0371.0221.0141.006
15101.0371.0221.0121.0061.0341.0201.0121.005
Sheet4
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Normalize your data so that it has four columns:

(1) X value
(2) Y value
(3) instance
(4) data value

Then, consider running a regression model (either with tools --> data analysis --> regression or by using the LINEST function) to predict (4) based on (1) and (2).
 
Upvote 0
put a row 3 in which is a concanenation of 4&5 :-

a3= a4&" "&a5 (space for clarity)

index($e$6:$z$25,match(p30,$e$3:$z$3,0),match(q30,$d$6:$d$25,0))

where e6:z25 is your data range
p30 is the cell that chooses which row you require
q30 is the concatenation of the two indexes that choose which column you require.

Thanks

Kaps
 
Upvote 0
Oaktree:
Could you explain a bit more...please. Not certain I understand how to consolidate into X and Y values or 2 columns.
 
Upvote 0
Sure.

You want your data layout to be something like this so that you can use the Regression tool:
Book7
ABCD
14R1R2C1Value
15807011.092
16805011.082
17803011.075
18801011.068
19707011.077
20705011.07
21703011.064
22701011.059
23807021.079
24805021.066
25803021.055
26801021.047
27707021.068
28705021.057
29703021.048
30701021.039
Sheet1
 
Upvote 0
Oaktree:

Got the spreadsheet working with LINEST() func. However for X values that are in the table, the calculated Y value from the LINEST() output does not return the number in the table. I calculated the %error for each Y value in the table to each calculated Y value and the %errors were large ranging from -400%-180%. Does the normalized data table need to be in any specific sorted order?
 
Upvote 0
The order would not matter.

It's hard to tell without seeing your data and without knowing anything about the logic of the interaction of the variables, but note the pvalues of your coefficients. With a pvalue of 0.603 (cell K1074), your intercept has a confidence level that's less than 40%. With a pvalue of .1293, your C1 coefficient (note that the order of the variables is reversed... cell H1073 corresponds to column J of your inputs) has a confidence level that's less than 90%.

Thus, it's not terribly surprising that the predictive results are not great. Maybe it would make logical sense to force the intercept of your model to be 0?
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,825
Members
449,470
Latest member
Subhash Chand

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