Interpolating Data From a Table

davyj93

New Member
Joined
Apr 14, 2017
Messages
14
Hi Guys,

I've recorded engine data and two of the variables recorded were engine speed and coolant temperature. To determine friction torque, the table below needs to be used:

Engine Speed40080010001100120013001400150016001800200022002400260028003000
Coolant Temperature
-30.048096104.4108.9113117.8122.7127.6132.5141148156161.7168176183
-20.04658290.293.998.1102.6107.5112117.3125132.3139.2144.9150156.2162
-10.0455697680.383.687.89296.5101107.7115121127.5133.7139.3145
-0.0448596366.869.572.976.880.68592.599106113119.1125.7133
9.9645.554.358.760.862.7666972.9778592100106112.5119125.5
19.9643.852.356.558.560.463.665.969.172.280.187.195102.1108115120.9
29.9642.250.354.456.358.161.263.566.569.577.183.991.598.3104110.5116.4
39.9640.548.452.354.155.958.86163.966.77480.687.994.4100106111.8
49.9639.343.846.64849.351.553.255.557.663.168.273.980.58692100.3
59.963839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7
69.963839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7
79.963839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7
89.963839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7
99.963839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7
109.963839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7
119.96 3839.240.841.842.744.145.44748.552.155.859.866.573.280.988.7

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

The values in the main body of the table are friction torque. I would like to be able to calculate friction torque for a range of engine speeds and coolant temperatures. I think I have to interpolate the table to do this. How do I interpolate the table on Excel?

Below is a small sample of my spreadsheet. I would like a formula to calculate the friction torque by using the values in the engine speed and coolant temperature columns, and then using the table above. Any suggestions?

Coolant Temperature (°C)Engine Speed (rpm)Friction Torque (Nm)
30940
30940
30.16940
30.16937
30.2937.5
30.5938
30.6941
30.6941
31941
31940.5
31939
31938.5
31939.5
31.9940
32941.5
32.5942.5
32.5939
32.5939.5
32.6941.5
33942
33.4942.5
33.5943
35942

<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>
</tbody>

Thanks,
David
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Welcome to the forum!

Firstly, add your expected outcomes to the first five rows of the output table, please.
 
Upvote 0
Here is the table with expected results:

Coolant Temperature (°C)Engine Speed (rpm)Friction Torque (Nm)
3094053.16184
3094053.16184
30.1694053.1292
30.1693753.06776
30.16937.553.06985

<tbody>
</tbody>

I think these values are correct. I used an online calculator from:
Bilinear Interpolation Equation Formula Calculator - Double Interpolator

That link has an equation for the interpolation but I'm not sure how to use it on my spreadsheet.
 
Upvote 0
Bit of a puzzle applying the formula concerning bilinear interpolation with so many INDEX MATCH combinations, but this should be it:

=(INDEX($A$3:$A$18,MATCH(B24,$A$3:$A$18,1)+1)-B24)/(INDEX($A$3:$A$18,MATCH(B24,$A$3:$A$18,1)+1)-INDEX($A$3:$A$18,MATCH(B24,$A$3:$A$18,1)))*((INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)+1)-C24)/(INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)+1)-INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)))*INDEX($C$3:$R$18,MATCH(B24,$A$3:$A$18,1),MATCH(C24,$C$1:$R$1,1))+(C24-INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)))/(INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)+1)-INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)))*INDEX($C$3:$R$18,MATCH(B24,$A$3:$A$18,1),MATCH(C24,$C$1:$R$1,1)+1))+(B24-INDEX($A$3:$A$18,MATCH(B24,$A$3:$A$18,1)))/(INDEX($A$3:$A$18,MATCH(B24,$A$3:$A$18,1)+1)-INDEX($A$3:$A$18,MATCH(B24,$A$3:$A$18,1)))*((INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)+1)-C24)/(INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)+1)-INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)))*INDEX($C$3:$R$18,MATCH(B24,$A$3:$A$18,1)+1,MATCH(C24,$C$1:$R$1,1))+(C24-INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)))/(INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)+1)-INDEX($C$1:$R$1,MATCH(C24,$C$1:$R$1,1)))*INDEX($C$3:$R$18,MATCH(B24,$A$3:$A$18,1)+1,MATCH(C24,$C$1:$R$1,1)+1))

With B24 having 30 (degrees, of the first point you try to calculate), with c24 having 940 (speed of the engine, of the first point you try to calculate), with A3:A18 populated by the Temperatures, with c1:R1 populated by the speed of the engine and with C3:R18 populated by the table.

One small note, using bilinear interpolation your data should be linear, which your data is not. Therefore the results you posted and the results you will get from the formula above will be slightly different from the true answer.

Best regards,
Mart van Gestel
 
Last edited:
Upvote 0
Would a different formula need to be used then if my data isn't linear?

What formula would have to be used?
 
Upvote 0
Well, it is not a must, it depends on how accurate you want to be.

Torque for a temperature of 29.96 at a speed of 1000 should be 54.4 (assuming you measured without any errors).

If I calculate it with the data you have given:

Temperature 29.96 and speed 800 result in 50.3 Torque
Temperature 39.96 and speed 800 result in 48.4 Torque
Temperature 29.96 and speed 1100 result 56.3 in Torque
Temperature 39.96 and speed 1100 result 54.1 in Torque

Using the website or the formula, a temperature of 29.96 and a speed of 1000 will result in a 54.3 Torque (instead of the 54.4 you measured).

Unfortunately, getting an even more accurate answer using a different approach is a bit out of my scope.
But someone else might be able to help you, if getting more accurate answers is a must.

Best regards,
Mart
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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