4 Linear Interpolations... I think.

jwell1515

New Member
Joined
Sep 20, 2012
Messages
1
Here are 4 tables of iterated values for bottom hole pressures in CO2 injection wells. I’d like to be able to input a Surface Pressure (Psurf), TD (total depth), average fluid temperature Tavg, and CO2% and have excel go find the best approximation of the bottom hole pressure from the tables. Basically it needs to do 4 interpolations. I am totally stumped. Any help at all would be much appreciated. I've pasted the four data sets the best I can.

Thanks

John

CO2100
TD=4925Tavg=70Tavg=75Tavg=80Tavg=85Tavg=90Tavg=95Tavg=100
Psurf18003672363535953553350934613409
Psurf18503729369236543612356935223471
Psurf19003786375037123671362935833533
Psurf19503843380737713731369036453596
Psurf20003899386538283788374837053658
Psurf20503955392138863847380737653720
Psurf21004011397839433905386638253782
Psurf21504067403540013964392638873845
Psurf22004123409140584022398539473907
Psurf22504179414741154080404440073979
Psurf23004234420341714137410240664029

<colgroup><col><col><col span="7"></colgroup><tbody>
</tbody>


CO298
DepthTD=4925Tavg=70Tavg=75Tavg=80Tavg=85Tavg=90Tavg=95Tavg=100
Psurf18003647361435783542350334613417
Psurf18503703367036343598355935183474
Psurf19003759372736913656361835773534
Psurf19503815378337483713367536353594
Psurf20003871384038053771373436953655
Psurf20503927389638623828379237543715
Psurf21003982395239193886385038133775
Psurf21504038400939763944390938733836
Psurf22004093406440324000396639313895
Psurf22504147411940884057402439903955
Psurf23004203417541454115408340514017

<colgroup><col><col><col span="7"></colgroup><tbody>
</tbody>

CO2100
TD=4975Tavg=70Tavg=75Tavg=80Tavg=85Tavg=90Tavg=95Tavg=100
Psurf18003691365336133571352734793426
Psurf18503747371036723630358735403489
Psurf19003804376837303689364736013551
Psurf19503861382537893749370836633614
Psurf20003917388338463806376637233676
Psurf20503973393939043865382537833738
Psurf21004029399639613923388438433800
Psurf21504085405340193982394439053863
Psurf22004141410940764040400339653925
Psurf22504197416541334098406240253997
Psurf23004254422141894155412040844046

<colgroup><col><col><col span="7"></colgroup><tbody>
</tbody>

CO298
TD=4975Tavg=70Tavg=75Tavg=80Tavg=85Tavg=90Tavg=95Tavg=100
18003666363235963560352134793434
18503721368836523616357735363492
19003777374537093674363635953552
19503833380137663731369336533612
20003889385838233789375237133673
20503945391438803846381037723733
21004000397039373904386838313793
21504056402739943962392738913854
22004111408240504018398439493913
22504165413741064075404240083973
23004222419341634133410140694035

<colgroup><col><col span="7"></colgroup><tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Here are 4 tables of iterated values for bottom hole pressures in CO2 injection wells. I’d like to be able to input a Surface Pressure (Psurf), TD (total depth), average fluid temperature Tavg, and CO2% and have excel go find the best approximation of the bottom hole pressure from the tables. Basically it needs to do 4 interpolations. I am totally stumped. Any help at all would be much appreciated. I've pasted the four data sets the best I can.

What you want is multiple linear regression:
LINEST - Excel - Office.com

However, when I do it out for your data, it doesn't come up with a reasonable answer. So there's something wrong. Basically, a vast majority of the final value seems to be determined by the PSurf more than anything else. If you had more values to fill in (rather than just 2 values for CO2 and TD) then we may get a better result.

You could read through this article which will give you more info:
Trendline coefficients
 
Upvote 0
COuld you provide an example of the input Values... and the result, from the table that you are looking to achieve
 
Upvote 0
I understand what he's looking for, I just can't figure out the math.

For instance, he is looking for the bottom pressure at 99 CO2 with TD of 4925, Psurf of 1800, And Tavg of 80.

He has two values in the table:
100 CO2, TD 4925, Psurf 1800, Tavg 80 = 3595
98 CO2, TD 4925, Psurf 1800, Tavg 80 = 3578

So he wants a value in between those two figures (3595 and 3578)

Or he has two values:
98 CO2, TD 4975, Psurf 1800, Tavg 80 = 3596
98 CO2, TD 4925, Psurf 1800, Tavg 80 = 3578

He wants to find the same for TD 4950, which again should be in between the values.

If it's just one variable to extrapolate, it isn't so bad. But he has 4:
1) CO2
2) TD
3) Psurf
4) Tavg

And TREND() won't solve for 4 variables.

So he has to do linear regression.

If you run standard multiple linear regression on his data, you get the following results:

Excel 2010
ABCDEFGHIJK
1CO2TDPsurfTDBottom Hole Pressure
29849251800703647-7.124681.1636490.360268.980519-609.579
398492518507037030.1252170.0079190.0500871.25217277.8755
498492519007037590.98799221.97549#N/A#N/A#N/A
598492519507038156232.72303#N/A#N/A#N/A
6984925200070387112039677146325.5#N/A#N/A#N/A
79849252050703927
89849252100703982
99849252150704038
109849252200704093CO2TDPsurfTD
119849252250704147984925180070
129849252300704203
139849751800703666Result:5700.28
149849751850703721
159849751900703777
169849751950703833
179849752000703889
189849752050703945
199849752100704000
209849752150704056
219849752200704111
229849752250704165
239849752300704222
2410049251800703672
2510049251850703729
2610049251900703786
2710049251950703843
2810049252000703899
2910049252050703955
3010049252100704011
3110049252150704067
3210049252200704123
3310049252250704179
3410049252300704234
3510049751800703691
3610049751850703747
3710049751900703804
3810049751950703861
3910049752000703917
4010049752050703973
4110049752100704029
4210049752150704085
4310049752200704141
4410049752250704197
4510049752300704254
469849251800753614
479849251850753670
489849251900753727
499849251950753783
509849252000753840
519849252050753896
529849252100753952
539849252150754009
549849252200754064
559849252250754119
569849252300754175
579849751800753632
589849751850753688
599849751900753745
609849751950753801
619849752000753858
629849752050753914
639849752100753970
649849752150754027
659849752200754082
669849752250754137
679849752300754193
6810049251800753635
6910049251850753692
7010049251900753750
7110049251950753807
7210049252000753865
7310049252050753921
7410049252100753978
7510049252150754035
7610049252200754091
7710049252250754147
7810049252300754203
7910049751800753653
8010049751850753710
8110049751900753768
8210049751950753825
8310049752000753883
8410049752050753939
8510049752100753996
8610049752150754053
8710049752200754109
8810049752250754165
8910049752300754221
909849251800803578
919849251850803634
929849251900803691
939849251950803748
949849252000803805
959849252050803862
969849252100803919
979849252150803976
989849252200804032
999849252250804088
1009849252300804145
Sheet4
Cell Formulas
RangeFormula
H13=G11*G2+H11*H2+I2*I11+J2*J11+K2
G2:K6{=LINEST(E2:E309,A2:D309,TRUE,TRUE)}
Press CTRL+SHIFT+ENTER to enter array formulas.


(I can only paste 100 lines, the table continues for all other values too).

Obviously 5700 is totally off, since the range of values in the table is 3409-4254, and the value for the particular combination I put in is 3647 (first value in the table). But I don't know why it's off, because multiple linear regression is an art not a science and I don't understand the data or relationship (it looks like 99.9% of the value should be modified by the Psurf alone).
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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