Function Problems

Match an Excel Exponential Trendline with LINEST

Anum MushtaqAnum Mushtaq Nov 18, 2026 869 views

Question details

Calculate LINEST coefficients that match an Excel exponential trendline, including its leading coefficient.

Match an Excel Exponential Trendline with LINEST
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to relate LINEST output to a chart trendline written as y = a × e^(bx).
Observed behavior
LINEST on the natural logarithms of the y-values returns the slope b and intercept ln(a); EXP converts the intercept to a.
Before you start

Place the x-values and corresponding y-values in two columns, and confirm that every y-value is greater than zero. Use the same data range for the chart and the formulas, and leave the trendline intercept unconstrained.

Solution 1Recommended

Calculate the exponential trendline coefficients with LINEST

Use this method to calculate the leading coefficient and exponent from the same data used in the chart.

For y = a × e^(bx), taking the natural logarithm gives LN(y) = LN(a) + bx. LINEST therefore returns b as the slope and LN(a) as the intercept.

1
Log the y-values

If x-values are in A2:A10 and y-values are in B2:B10, enter =LN(B2) in C2 and fill it down through C10.

2
Calculate the exponent

Enter =INDEX(LINEST(C2:C10,A2:A10),1,1) in an empty cell to return b.

3
Calculate the leading coefficient

Enter =EXP(INDEX(LINEST(C2:C10,A2:A10),1,2)) in another empty cell to return a. If the LINEST intercept is already in F2, use =EXP(F2) instead.

4
Compare with the chart

Select the chart's trendline, open Format Trendline, choose Exponential, and enable Display Equation on chart. Compare its coefficients with your formula results.

Calculate the exponential trendline coefficients with LINEST
Check the displayed precision: The chart equation may round its coefficients. Format the trendline label to show more decimal places when comparing it with the worksheet results.
Calculate trendline coefficients

Calculate exponential trendline coefficients in WPS Spreadsheet

Use LN, LINEST, INDEX, and EXP in WPS Spreadsheet to calculate the coefficients of an exponential fit from your worksheet data.

  1. 1. Open your workbook: In WPS Spreadsheet, open the Excel workbook containing your x-values in column A and y-values in column B.
  2. 2. Create a logarithm column: Enter =LN(B2) in C2 and fill it down alongside the positive y-values.
  3. 3. Find the exponent: For data in rows 2 through 10, enter =INDEX(LINEST(C2:C10,A2:A10),1,1) in an empty cell.
  4. 4. Find the leading coefficient: Enter =EXP(INDEX(LINEST(C2:C10,A2:A10),1,2)) in another empty cell. Use the two results as a and b in y = a × e^(bx).
Calculate both the leading coefficient and exponent for an exponential fitOpen and edit Microsoft Excel XLSX workbooksUse a familiar spreadsheet interface and worksheet formulas
microsoft office alternative - wps office

Frequently Asked Questions

Why does LINEST return a different leading coefficient from the trendline?

When LINEST uses LN(y), its intercept is LN(a), not a. Apply EXP to the intercept to obtain the leading coefficient shown in the exponential equation.

Should I apply LN to the x-values or the y-values?

For an exponential model y = a × e^(bx), apply LN to the y-values. For a logarithmic model y = a × LN(x) + b, apply LN to the x-values instead.

Can I use zero or negative y-values?

No. LN is defined only for positive real values, so check the y-value column and exclude or correct nonpositive values before fitting an exponential model.

Why do my results differ slightly from the chart equation?

The chart label may round the displayed coefficients. Open Format Trendline Label and increase the number of decimal places; also confirm that the chart and formulas use the same data and that the intercept is not forced.