Interpolation in Excel

Ruben40870

New Member
Joined
Jun 1, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am hoping someone can help me with an issue I have been having. I am trying to add an Interpolation sum in one of my spreadsheets but I just can't figure out how. Below is the sum:

1622537904688.png

I really hope someone can help.

Thanks in advance!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I'm not sure I understand your formula. It looks like it should be (0.880909-0) on the bottom right.
MrExcelPlayground2.xlsm
BC
400.74
50.8809090.810473
610.82
Sheet30
Cell Formulas
RangeFormula
C5C5=(C6-C4)/(B6-B4)*(B5-B4)+C4


1622559880450.png
 
Upvote 0
Thanks for the reply.

Yes, the formula is a bit weird and that's why I'm struggling but I know it's right, even confirmed it with Microsoft Maths.

I'm starting to think it's not exactly interpolation but very similar, if that makes sense...
 
Upvote 0
It looks like it is just solving the equation for CU, right?
If so, then you will need to replace your hard-code numbers (variables) with Excel range references.
If you do that, we can come up with an Excel formula based on those ranges that will work whenever you plug numbers into those ranges.
But you just need to let us know exactly what you want those range references to be (i.e. what cell is 0.82 going in, what cell is 0.74 going in, etc).
 
Upvote 0
I'm working off a table for a light, I'll post the table for this equation below.

But the I need to do the equation for different lights so the table will change as the light changes, so I would prefer to manually input the values I get from the table.

1622562266305.png
 
Upvote 0
I think you had your formula a bit backwards - this makes more sense:
MrExcelPlayground2.xlsm
BC
400.82
50.8809090.749527
610.74
Sheet30
Cell Formulas
RangeFormula
C5C5=(C6-C4)/(B6-B4)*(B5-B4)+C4

1622562474445.png
 
Upvote 0
You can do something like this for the whole table....
MrExcelPlayground2.xlsm
BCDEFGHIJK
24Column:2
2550.45
265.150.4425
2760.4
28
29123456789
300.82.82.82.80.80.80.76.76.76
311.74.72.70.73.71.69.70.68.67
322.67.64.61.66.63.60.64.61.59
333.61.56.53.60.56.52.58.54.51
344.55.50.46.54.50.46.53.49.45
355.50.45.41.49.44.41.48.44.40
366.46.40.37.45.40.37.44.40.36
377.42.37.33.41.36.33.40.36.33
388.38.33.30.38.33.30.37.33.30
399.36.31.27.35.30.27.34.30.27
4010.33.28.25.33.28.25.32.28.25
Sheet30
Cell Formulas
RangeFormula
D25D25=XLOOKUP(D26,B30:B40,B30:B40,"",-1,1)
E25E25=VLOOKUP(D25,B30:K40,E24+1,FALSE)
E26E26=(E27-E25)/(D27-D25)*(D26-D25)+E25
D27D27=D25+1
E27E27=VLOOKUP(D27,B30:K40,E24+1,FALSE)
 
Upvote 0
It works out now, but only sometimes.

For instance the following equation doesn't get calculated correctly:
1622570327819.png

1622570350769.png

The difference between the two equations being the first on there was a minus after the CU in the equation, versus now there is a plus after the CU. This is important to get the correct value.

Whether its a +/- is based on the given RCR value, if the value is closer to the lower value then a plus sign is used. If a higher RCR value is given then a - sign is used in the equation.
 
Upvote 0
You can do something like this for the whole table....
MrExcelPlayground2.xlsm
BCDEFGHIJK
24Column:2
2550.45
265.150.4425
2760.4
28
29123456789
300.82.82.82.80.80.80.76.76.76
311.74.72.70.73.71.69.70.68.67
322.67.64.61.66.63.60.64.61.59
333.61.56.53.60.56.52.58.54.51
344.55.50.46.54.50.46.53.49.45
355.50.45.41.49.44.41.48.44.40
366.46.40.37.45.40.37.44.40.36
377.42.37.33.41.36.33.40.36.33
388.38.33.30.38.33.30.37.33.30
399.36.31.27.35.30.27.34.30.27
4010.33.28.25.33.28.25.32.28.25
Sheet30
Cell Formulas
RangeFormula
D25D25=XLOOKUP(D26,B30:B40,B30:B40,"",-1,1)
E25E25=VLOOKUP(D25,B30:K40,E24+1,FALSE)
E26E26=(E27-E25)/(D27-D25)*(D26-D25)+E25
D27D27=D25+1
E27E27=VLOOKUP(D27,B30:K40,E24+1,FALSE)

It would too much work as the equation may only be done like three times and not again thereafter. Different tables will always be used
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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