Formualizer Docs

LOGEST

Returns parameters for an exponential model fitted to known data.

LOGEST fits y = b * m^x and returns either [m, b] or an expanded statistics matrix.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=LOGEST(known_ys, [known_xs], [const], [stats])

Arguments

ArgumentTypeRequiredDefault
known_ysnumber (range)Required—
known_xsnumber (range)Optional—
constnumber (range)Optional—
statsnumber (range)Optional—

Remarks

  • All known y-values must be strictly greater than 0.
  • known_x defaults to 1..n when omitted; several variables are laid out as in LINEST and the bases come back in reverse order of the variables, then b.
  • const controls whether b is fitted (TRUE by default).
  • stats=TRUE returns the LINEST statistics block of the fit of ln(y).

Examples

Fit coefficients using three observations and their known x values.

Formula =LOGEST({2;4;8},{1;2;3})

Expected result {2, 1}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Return exponential regression statistics for three imperfectly aligned observations.

Formula =LOGEST({2;4;7},{1;2;3},TRUE,TRUE)

Expected result {1.87082869338697, 1.09310353301279; 0.0385471927385168, 0.083271453596626; 0.996227180101123, 0.0545139627622202; 264.053733494562, 1; 0.784707527616663, 0.00297177213604073}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Use two observations with distinct x values.

Formula =LOGEST({2;4},{1;2})

Expected result {2, 1}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The independent and dependent observations do not align.

Formula =LOGEST({2;4;8},{1;2})

Expected result #REF!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Exponential base and intercept

Formula =LOGEST({2,4,8},{1,2,3})

Expected result {2, 1}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Alternative growth series

Formula =LOGEST({3,6,12},{1,2,3})

Expected result {2, 1.5}

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Implementation

Engine source

On this page