hi, need help in how to make interpolation formula based on 2 variable?

AJIESPEDAS

New Member
Joined
Jun 3, 2023
Messages
24
Office Version
  1. 2019
Platform
  1. MacOS
hi experts!

i come to a problem again with excel and in need of your expertise to solve my problem.
in given 2 variable for example

12750 lbs with a temperature 31
i need a interpolation that can derive an answer based on image that i give?
is it possible? i have done a single simple interpolation and thats bout it, but this new thing i think it can be done?not so sure..

regards,

ajiespedas
 

Attachments

  • Screenshot 2024-05-27 at 10.17.27 AM.png
    Screenshot 2024-05-27 at 10.17.27 AM.png
    129.5 KB · Views: 21

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You can do a 2-way linear interpolation like this:

ABCDEFGHIJKL
1WeightTemp-5051015NoRows4
215,000A1234
3B5678InterpolateIndexFraction
4C9101112MeasureB1
5D13141516Weight13,200130.6
614,500A17181920Temp420.8
7B21222324Value64.4
8C25262728
9D29303132
1014,000A33343536
11B37383940
12C41424344
13D45464748
1413,500A49505152
15B53545556
16C57585960
17D61626364
1813,000A65666768
19B69707172
20C73747576
21D77787980
2212,500A
23B
24C
25D
Sheet6
Cell Formulas
RangeFormula
K4K4=MATCH(J4,B2:B5,)-1
K5K5=MATCH(J5,Weight,-1)
L5L5=(J5-INDEX(Weight,K5))/(INDEX(Weight,K5+NoRows)-INDEX(Weight,K5))
K6K6=MATCH(J6,Temp,1)
L6L6=(J6-INDEX(Temp,K6))/(INDEX(Temp,K6+1)-INDEX(Temp,K6))
J7J7=(INDEX(MyTable,K4+K5,K6)*(1-L5)+INDEX(MyTable,K4+K5+NoRows,K6)*L5)*(1-L6)+(INDEX(MyTable,K4+K5,K6+1)*(1-L5)+INDEX(MyTable,K4+K5+NoRows,K6+1)*L5)*L6
Named Ranges
NameRefers ToCells
MyTable=Sheet6!$C$2:$G$25J7
NoRows=Sheet6!$J$1L5, J7
Temp=Sheet6!$C$1:$G$1K6:L6
Weight=Sheet6!$A$2:$A$22K5:L5

You could build all this into one formula, but it would be a doozy! (Even if you have the latest version of Excel to use the LET function).
 
Upvote 0
You can do a 2-way linear interpolation like this:

ABCDEFGHIJKL
1WeightTemp-5051015NoRows4
215,000A1234
3B5678InterpolateIndexFraction
4C9101112MeasureB1
5D13141516Weight13,200130.6
614,500A17181920Temp420.8
7B21222324Value64.4
8C25262728
9D29303132
1014,000A33343536
11B37383940
12C41424344
13D45464748
1413,500A49505152
15B53545556
16C57585960
17D61626364
1813,000A65666768
19B69707172
20C73747576
21D77787980
2212,500A
23B
24C
25D
Sheet6
Cell Formulas
RangeFormula
K4K4=MATCH(J4,B2:B5,)-1
K5K5=MATCH(J5,Weight,-1)
L5L5=(J5-INDEX(Weight,K5))/(INDEX(Weight,K5+NoRows)-INDEX(Weight,K5))
K6K6=MATCH(J6,Temp,1)
L6L6=(J6-INDEX(Temp,K6))/(INDEX(Temp,K6+1)-INDEX(Temp,K6))
J7J7=(INDEX(MyTable,K4+K5,K6)*(1-L5)+INDEX(MyTable,K4+K5+NoRows,K6)*L5)*(1-L6)+(INDEX(MyTable,K4+K5,K6+1)*(1-L5)+INDEX(MyTable,K4+K5+NoRows,K6+1)*L5)*L6
Named Ranges
NameRefers ToCells
MyTable=Sheet6!$C$2:$G$25J7
NoRows=Sheet6!$J$1L5, J7
Temp=Sheet6!$C$1:$G$1K6:L6
Weight=Sheet6!$A$2:$A$22K5:L5

You could build all this into one formula, but it would be a doozy! (Even if you have the latest version of Excel to use the LET function).
is there any way i can copy this and have a go at my excel? ill try to manipulate it into my excel..
i have done a simple interpolation, but yours is far complicated..

btw this is my excel which i want to interpolate
if you can open it.
 
Upvote 0
is there any way i can copy this and have a go at my excel?
Click here, and you can paste the layout and formulae to cell A1 in a blank workbook:

1716804798528.png

You'll need to create the range names MyTable, NoRows, Temp and Weight
 
Upvote 0
Click here, and you can paste the layout and formulae to cell A1 in a blank workbook:

View attachment 111938
You'll need to create the range names MyTable, NoRows, Temp and Weight
I think i got it! i cant thank you enough, this is so powerful and it really helps alot! thanks man!
 

Attachments

  • Screenshot 2024-05-27 at 10.54.55 PM.png
    Screenshot 2024-05-27 at 10.54.55 PM.png
    112 KB · Views: 10
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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