Documente Academic
Documente Profesional
Documente Cultură
The linear interpolation equation above can be implemented directly in Microsoft Excel
provided the tabulated values are monotonic in x, that is the x-values are sorted and no
two are equal. The online Microwave Encyclopedia has the full 6 line implementation
along with a good explanation of how it works.
However, here is a simpler implementation for Excel:
=FORECAST(NewX,OFFSET(KnownY,MATCH(NewX,KnownX,1)1,0,2),OFFSET(KnownX,MATCH(NewX,KnownX,1)-1,0,2))
To use it either:
1.
Copy the formula above into Excel and replace KnownX and KnownY with the cell
reference for the tabulated x and y values and NewX with the x-value to interpolate, OR
2.
Define names for the KnownX and KnownY ranges (InsertNameDefine... in
Excel 2003) and replace NewX with the x-value to interpolate.
You can download the Excel linear interpolation example.
This equation works exactly the same way as the direct implementation of the linear
interpolation equation. The main difference is that only two lookup functions are
required for the simple approach described here, while the direct implementation needs
6: one for each term in the equation.
3. The TREND function uses linear regression to solve for y if you have two or more
points. This is also a way to estimate y from a linear fit of many points.
y=TREND(y's,x's,x,TRUE)
=TREND(B2:B3,A2:A3,B5,TRUE)