To interpolate in Excel, use the FORECAST.LINEAR function with known x and y values, or build a linear interpolation formula manually using the equation y = y1 + (x - x1) * (y2 - y1) / (x2 - x1). For example, if you have data points (10, 100) and (20, 200), the interpolated y at x=15 is 150.
What Interpolation Means in Excel
Interpolation is the process of estimating an unknown value that falls between two known data points. In Excel, this is most commonly done for linear data—where the relationship between x and y forms a straight line. Unlike extrapolation (predicting values outside your data range), interpolation stays within the observed range, making it more reliable for estimates. Excel doesn’t have a single button labeled “Interpolate,” but several built-in functions and manual formulas achieve the same result.
Method 1: Using FORECAST.LINEAR (Simplest)
The FORECAST.LINEAR function (available in Excel 2016 and later) calculates a predicted y-value for a given x based on existing x and y pairs. It fits a straight line through your data using the least-squares method, so it works best when your data is roughly linear.
Assume your x-values are in A2:A10 and y-values in B2:B10. To interpolate at x=15, enter:
=FORECAST.LINEAR(15, B2:B10, A2:A10)
This returns the estimated y. The older FORECAST function works identically and is still supported. If your data is perfectly linear (two points only), FORECAST.LINEAR gives the exact straight-line value. For noisy data, it gives a best-fit estimate, which may differ from a simple two-point interpolation.
Method 2: Manual Linear Interpolation Formula
When you have exactly two known points and want the exact value on the straight line between them, use the direct formula. Suppose your known points are (x1, y1) in cells A1 and B1, and (x2, y2) in cells A2 and B2. To find y at x=15 (put 15 in C1), enter:
=B1 + (C1 - A1) * (B2 - B1) / (A2 - A1)
For example, with A1=10, B1=100, A2=20, B2=200, and C1=15, the result is 150. This formula works for any two points, as long as x1 and x2 are different. It’s the most transparent method because you can see exactly how the interpolation is calculated.
How to Choose Between Methods
Your choice depends on your data and goal:
- Two known points only: Use the manual formula—it’s exact and simple.
- Many points, roughly linear: Use FORECAST.LINEAR to get a best-fit trend line.
- Non-linear data (curves): Neither method works well. Consider using a trendline (Chart Tools > Add Chart Element > Trendline) with polynomial or exponential options, then use the trendline equation to interpolate.
- Interpolating in a table (e.g., lookup between rows): Use the manual formula with INDEX/MATCH to find the surrounding points automatically. For example, with x-values in A2:A10 and y-values in B2:B10, to interpolate at x in D1, use an array formula or a more complex INDEX/MATCH setup.
Common Problems and Fixes
Several issues trip up users:
- #DIV/0! error: This happens when x1 equals x2 in the manual formula. Ensure your two x-values are different.
- #N/A error with FORECAST.LINEAR: Your x and y ranges must be the same size. Also, if your x-values are not sorted, the function still works, but the result may be unexpected for non-linear data.
- Interpolating outside the range: That’s extrapolation, not interpolation. FORECAST.LINEAR will still give a result, but it’s less reliable. Clearly label such estimates.
- Non-linear data: Linear interpolation will be inaccurate. Use a scatter plot to check linearity first.
Interpolating Between Dates or Times
Excel stores dates and times as serial numbers, so you can interpolate them directly. For example, if you have a value on January 1 (serial 43831) and another on January 10 (serial 43840), the formula works the same. To interpolate a value for January 5, use the manual formula with the date serial numbers. To display the interpolated date as a date, format the result cell as a date. This is useful for filling missing daily values from weekly data.
Using TREND and GROWTH for More Complex Cases
For multiple x variables (e.g., interpolating y based on two independent variables), use TREND. With x1 in A2:A10, x2 in B2:B10, and y in C2:C10, to predict at new x1=5 and x2=7 (put in D2 and E2), enter as an array formula:
=TREND(C2:C10, A2:B10, D2:E2)
Press Ctrl+Shift+Enter (Windows) or Cmd+Shift+Enter (Mac) to confirm as an array formula in older Excel; in Microsoft 365, it spills automatically. For exponential growth data, use GROWTH with the same syntax. These functions are overkill for simple two-point interpolation but essential for multi-variable datasets.
Frequently Asked Questions
Can I interpolate with just two cells of data? Yes. The manual formula works with exactly two points. Just ensure the x-values are different and the target x falls between them.
Why does FORECAST.LINEAR give a different result than my manual calculation? FORECAST.LINEAR fits a least-squares regression line through all your data points. If your data isn’t perfectly linear, the regression line won’t pass exactly through each point, so the interpolated value differs from a two-point linear interpolation.
Does interpolation work for non-linear data? Not accurately with these methods. For curves, you need polynomial or spline interpolation, which Excel doesn’t have natively. You can add a polynomial trendline to a chart and use its equation, or use a third-party add-in.
How do I interpolate in Excel on a Mac? The functions and formulas are identical. The only difference is keyboard shortcuts for array formulas (Cmd+Shift+Enter instead of Ctrl+Shift+Enter).
Is there an INTERPOLATE function in Excel? No. Excel has no dedicated INTERPOLATE function. You use FORECAST.LINEAR, TREND, or a manual formula.
Can I interpolate in Excel for the web? Yes. FORECAST.LINEAR and TREND work in Excel for the web, and the manual formula works as well. Array formulas are handled automatically with dynamic arrays in Microsoft 365.
Related
- How Much Coding for Data Mining?
- Balance Sheet Statement Exercises: Practice with Examples
- Google Sheets OCT2HEX: Convert Octal to Hex
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Data Entry and CRM Management: A Practical GuideData entry and CRM management are the two sides of keeping customer information accurate, organized, and useful: data…
- How to Center Selected Print on a Page in Microsoft ExcelTo center selected cells on a printed page in Excel for Microsoft 365 on Windows, select the range,…
- Snowflake String to Number: CAST and TO_NUMBER ExplainedTo convert a string to a number in Snowflake, use the CAST function (e.g., CAST('123.45' AS NUMBER(10,2))) or…
- How to Consolidate Quantities in Excel by Item NamesTo combine repeated quantities for each item, put each item name once in a summary list and use…
- Loan Amortization Schedule Excel: South Africa GuideTo make a loan amortization schedule in Excel for a South African loan, enter the amount borrowed, annual…
- Excel Solver Answer Report: Create and Read ItTo create a Solver Answer Report in Excel, set up and solve your model, then select Answer in…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.