This article explains how to use the linear interpolation method in Excel. Interpolation is very useful when you have a data set and are trying to derive intermediate values that you don’t have. Since you don’t know how these values were calculated, you can use interpolation to find an approximation without knowing the original formulas.
We must exercise caution when using linear interpolation, as it is an approximate procedure. This method works when we know, or at least assume with a certain degree of certainty, that the relationship between the different values can be represented on a Cartesian plane by a straight line. If we know or strongly suspect that the relationship between the data is exponential, interpolation will certainly yield inaccurate results.
How the Linear Interpolation Method Works
Let’s consider a practical example in which we have an intermediate value that we don’t know how to calculate. For example, we have all the values from 100 to 500 in increments of 100, but we have no idea what the value for 313 is, as shown in the graph:

We can certainly experiment and try different values, since the formula seems fairly easy to derive. We might then discover that all the values follow the same pattern, namely Y = X*0.7 − 30, but it won’t always be this simple to determine these values. So let’s see how to solve this, first using the dedicated formula (but without functions) and then with the FORECAST.LINEAR function.

Calculating Linear Interpolation Without Formulas
Let’s start by following the definition of linear interpolation, which you can also find on Wikipedia. We’re assuming we don’t know that there’s a dedicated function in Excel, so we’ll have to figure it out using the theoretical approach. You can also watch an excellent video on YouTube, but if we want to be quick, it’s enough to remember that to use linear interpolation, we need at least two X values (starting points) and their corresponding Y values, as we see in the previous graph, for example, X1 = 300 and Y1 = 180, while X2 = 400 corresponds to Y2 = 250.
Note: The formula works with any combination of X1 and X2, as shown in the table (for example, 100 and 500).
In this case, we note the following values:
- X and Y: X is the value we know (313), Y is the one we’re looking for
- X1 and Y1: these are the smallest X value and its corresponding Y value (300 and 180)
- X2 and Y2: the largest X value and its corresponding Y value (400 and 250)
From the linear interpolation formula, we must therefore calculate Y:
(X2-X1) / (X-X1) = (Y2-Ymin) / (Y-Y1)
Let’s rearrange the formula by rewriting it in terms of Y:
Y = (Y2-Y1) * (X-X1) / (X2-X1) + Y1
If we enter the same formula into Excel, we find that our result is 189.10:
=(C7-C6) * (B9-B6) / (B7-B6) + C6

If we want to test this, we find that 313 × 0.7 − 30 does indeed equal 189.10, so linear interpolation gives us the correct value for the equation in question. This also allows us to update our graph, where we can now see the value for 313:

This first method (without functions) can be used with all versions of Excel.
Linear Interpolation Formula in Microsoft Excel
If we want to make the calculation more scalable and precise, we can also use the FORECAST.LINEAR function . This function is used to generate a linear forecast based on the provided data, just as in the example we saw earlier. However, it’s much simpler to use, since the syntax is as follows:
=FORECAST.LINEAR(x,known_ys,known_xs)
We simply need to enter our X values, the known Y values, and then the known X values to obtain the result. Be careful about the order, since the Y values must be entered first, followed by the X values. Let’s see how this would look in our case, by entering all the data points available to us (and not just two pairs of Y and X, as in the previous example):
=FORECAST.LINEAR(B9,C4:C8,B4:B8)

The solution is exactly the same as the previous one, but in this case we’ve significantly streamlined the construction process by using the dedicated function. Of the two methods, the one using the FORECAST.LINEAR function is therefore preferable, not least because of its flexibility.
Conclusion
Linear interpolation estimates a missing value between two known points. You can calculate it with the interpolation formula or with FORECAST.LINEAR, which does the same calculation in one function.
Note: If you’re using an older version of Excel and can’t find the FORECAST.LINEAR function, or if the downloaded file returns an error, you can replace FORECAST.LINEAR with the FORECAST function to obtain the same results as before.
