Regression curve in EXCEL

Chorme 0 Reputation points
2026-11-29T02:52:55.1633333+00:00

Hello

I have always encountered problems when I search, via an Excel graph, for a regression curve, for example of the quadratic degree.

This would allow me to model results (here of temperature probes).

Here is an example in the appendix where, from a graphical point of view, everything is OK but the announced equation does not lead me to the values in question.

N.B. by other sites allowing to deduce an equation (here of the second degree) it is not better as shown in the file in the appendix.

Where do I make a mistake?

Thank you for your enlightenment

Microsoft 365 and Office | Excel | For education | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Kai-Ex 2,665 Reputation points Microsoft External Staff Moderator
    2026-11-29T03:42:13.3233333+00:00

    Hi Chorme ,

    Based on your description, I suspect the discrepancy may be caused by rounding of the coefficients in Excel’s displayed regression equation.Although the regression curve appears correct, Excel may display fewer significant digits than it uses internally to calculate the curve.

    Step 1: Increase the precision of the displayed equation

    Right-click the regression equation on your chart.

    Select Format Trendline Label.

    Expand Number.

    Select Scientific and increase the decimal places to 10–14.

    Recalculate your predicted values using the updated coefficients.

    Step 2: Verify the chart type

    Ensure that you are using an XY Scatter chart rather than a Line chart. A Scatter chart uses the actual numerical X-values when calculating the regression.

    Step 3: Calculate the coefficients directly using LINEST

    Assuming your X-values are in A2:A20 and Y-values are in B2:B20, try:

    =LINEST(B2:B20,A2:A20^{1,2})

    This returns the coefficients a, b, and c for the quadratic equation:

    y=ax^2+bx+c

    Using these coefficients directly avoids rounding errors from manually copying the displayed chart equation.

    Please also note that regression estimates the best-fitting curve, so the predicted values may differ slightly from the original measurements.

    Official references:

    Chart trendline formula is inaccurate in Excel⁠

    Display more digits in trendline equation coefficients⁠

    If the discrepancy persists, could you please share the original data, displayed regression equation, and an example of your calculated result? This would help me identify the exact cause.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.