Interpolating in Excel from a graph means estimating a value between two known data points on a plotted trend. It’s useful when you need a precise value that isn’t directly listed but falls within your dataset’s range. This method uses the visual trend of your chart combined with Excel’s mathematical interpolation—most commonly linear interpolation—to generate reliable estimates. You’ll need a scatter plot or line chart with actual data points, plus the coordinates of the two nearest known points surrounding your target value.

What You’ll Need

  • A properly formatted Excel worksheet with at least two columns of numeric data (e.g., X values in column A, Y values in column B)
  • A scatter plot (not a column/bar chart) created from your data; scatter plots preserve the X-axis scale and enable accurate interpolation
  • The specific X value you want to interpolate for (must lie between the smallest and largest X values in your dataset)
  • Basic familiarity with Excel formulas (e.g., using cell references, IFERROR)

Step-by-Step

  1. Prepare your data: Enter your known X and Y values in two adjacent columns (e.g., A2:A10 for X, B2:B10 for Y). Ensure the X values are sorted in ascending order—interpolation fails if they’re not. Double-check for blank cells or text entries in numeric columns.
  2. Create a scatter plot: Highlight your data range (e.g., A1:B10), go to the Insert tab, click Insert Scatter (X, Y) or Bubble Chart, and choose the first option: Scatter with only Markers. This chart will display your points and let you visually confirm where your target X falls.
  3. Identify the bracketing points: Find the two data points that "surround" your target X value. For example, if your target X is 7.5 and your dataset has X = 7 (Y = 12) and X = 8 (Y = 15), those are your bracketing points. Note the coordinates: (x₁, y₁) and (x₂, y₂).
  4. Use the linear interpolation formula: In an empty cell (e.g., D2), enter the formula: =(y₂ - y₁) / (x₂ - x₁) * (target_x - x₁) + y₁. Replace each variable with actual cell references. For instance, if x₁ is in A5, y₁ in B5, x₂ in A6, y₂ in B6, and your target X is in D1, the formula becomes: =(B6-B5)/(A6-A5)*(D1-A5)+B5.
  5. Automate bracketing with XLOOKUP (optional but recommended): Instead of manually finding the bracketing points, use XLOOKUP (Excel 365/2021+) to find the largest X ≤ target_x. In cell E1, enter: =XLOOKUP(D1, A:A, A:A, , -1). This returns x₁. In E2, enter: =XLOOKUP(D1, A:A, A:A, , 1)—but that finds the next point incorrectly. Better: use E1 for x₁ as above, then in E2 get x₂ with: =XLOOKUP(E1, A:A, A:A, , 0, 1) (skips down one row). Simpler: use two helper columns. In C5, enter: =IF(A5<=D1, A5, "") and drag down; then use =MAX(C:C) to get x₁. For x₂, use =INDEX(A:A, MATCH(E1, A:A, 0)+1) (assuming sorted data).
  6. Combine into one robust formula: To avoid helper columns, use this single formula (if x₁ is in E1, y₁ in F1, x₂ in E2, y₂ in F2): =(F2-F1)/(E2-E1)*(D1-E1)+F1. Or, with XLOOKUP embedded: =LET(x1,XLOOKUP(D1,A:A,A:A,,1), x2,XLOOKUP(x1,A:A,A:A,,0,1), y1,XLOOKUP(x1,A:A,B:B), y2,XLOOKUP(x2,A:A,B:B), (y2-y1)/(x2-x1)*(D1-x1)+y1). Note: This requires Excel 365.
  7. Verify on the chart: Right-click the chart, select Select Data, then Add. In Series X values, enter your target X (e.g., D1); in Series Y values, enter the interpolated cell (e.g., D2). Click OK. A new point should appear on the chart at the interpolated location—confirm it lies on the straight line between your bracketing points.

Common Mistakes

  • Using the wrong chart type: A column or bar chart compresses the X-axis into categories, making interpolation impossible. Always use a scatter plot.
  • Extrapolating instead of interpolating: Interpolation only works within the range of your data. If your target X is outside the min/max X values (e.g., X = 20 when your data ranges from 1–15), Excel will still compute a value—but it’s unreliable extrapolation, not interpolation.
  • Unsorted X values: If X values aren’t ascending (or descending), the bracketing logic fails. Sort your data first (Data tab > Sort A to Z on the X column).
  • Ignoring non-linear trends: Linear interpolation assumes a straight line between points. If your data curves (e.g., exponential growth), the estimate will be inaccurate. Consider trendlines or POLYFIT for curves.
  • Division by zero: If x₁ = x₂ (duplicate X values), the formula returns #DIV/0!. Check for and remove duplicate X entries or use XLOOKUP’s exact match mode.

Tips

  • Use named ranges: Name your X and Y columns (e.g., "Xvals", "Yvals") to make formulas more readable: =(INDEX(Yvals,MATCH(D1,Xvals,1)+1)-INDEX(Yvals,MATCH(D1,Xvals,1)))/(INDEX(Xvals,MATCH(D1,Xvals,1)+1)-INDEX(Xvals,MATCH(D1,Xvals,1)))*(D1-INDEX(Xvals,MATCH(D1,Xvals,1)))+INDEX(Yvals,MATCH(D1,Xvals,1)).
  • Add error handling : Wrap your formula in IFERROR to return "Out of range" or blank for extrapolation: =IF(OR(D1 .
  • Check residuals: After interpolating, compare your result to the chart’s visual trend. If the point looks off, re-examine bracketing points or consider curve fitting.
  • For many interpolations, use a table: Set up a column of target X values (e.g., D2:D20), then copy your interpolation formula down. Use absolute references (e.g., $A$2:$A$10) for data ranges.
  • Use Excel’s Trendline Equation: Right-click the chart trendline (Add Trendline first if missing), choose Linear, check "Display Equation on chart." Then plug your target X into that equation (e.g., if trendline is y = 2.1x + 3.4, compute =2.1*D1 + 3.4). This gives a best-fit interpolation, not point-to-point linear.

Troubleshooting

  • #VALUE! or #DIV/0! error: Check that all referenced cells contain numbers. Remove spaces or text in numeric columns. Confirm x₁ ≠ x₂—sort data and eliminate duplicates.
  • Interpolated point doesn’t appear on chart: Verify your chart series uses the correct Y cell. Re-add the series: right-click chart > Select Data > Add, and ensure X and Y ranges are single cells (not ranges).
  • Formula gives wrong value despite correct inputs: Confirm bracketing points truly surround your target. If X data has gaps, manually inspect A-column values near your target (e.g., use Filter to see only rows where A is between 6 and 9).
  • XLOOKUP returns #N/A: If using XLOOKUP, ensure the match_mode is set correctly (-1 for ≤, 1 for ≥). For sorted ascending data, use MATCH(D1, A:A, 1) to find the largest value ≤ D1.
  • Chart trendline equation doesn’t match interpolation: Trendline uses all data points (least-squares fit), while interpolation uses only two neighbors. They’re different methods—use trendline for smoothed estimates, direct interpolation for local precision.

Frequently Asked Questions

Can I interpolate with non-linear data in Excel?

Yes, but linear interpolation assumes straight-line segments. For curved data, add a trendline (Polynomial or Exponential) and use its equation, or use Excel’s GROWTH/LINEST functions for curve-based interpolation.

Why does my interpolated value look off on the graph?

Check if your X values are sorted and if you’re interpolating between the correct adjacent points. Also, ensure your chart’s X-axis is set to a "Value" scale (right-click axis > Format Axis > Axis Options > Vertical Axis crosses at the first category—uncheck if using scatter plot).

Does Excel have a built-in interpolation function?

No built-in function, but you can create one with formulas (as shown) or use add-ins like Analysis ToolPak for regression. For most cases, the manual formula is faster and transparent.

Can I interpolate multiple points at once?

Yes—set up a column of target X values (e.g., D2:D50), then copy the interpolation formula down column E. Use mixed references (e.g., $A$2:$A$10) so the data range stays fixed.

What’s the difference between interpolation and trendline estimation?

Interpolation estimates between two known points using a straight line (exact through those points). A trendline estimates using a mathematical fit across all data points—it may not pass through any actual points but captures overall patterns.

Is interpolation accurate for scientific data?

Linear interpolation is mathematically valid for uniform, linear data between points. For non-linear or noisy data (e.g., lab measurements), use polynomial interpolation or regression with error analysis. Always validate with domain knowledge.