Formualizer Docs

GEOMEAN

Returns the geometric mean of positive numeric values.

GEOMEAN is commonly used for rates of change and multiplicative growth comparisons.

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

=GEOMEAN(number1, [number2], ...)

Arguments

ArgumentTypeRequiredDefault
number1number (range)Required—
number2number (range)Optional—

Accepts a variable number of arguments. Minimum: 1.

Remarks

  • All numeric inputs must be strictly greater than 0.
  • Non-numeric values in referenced ranges are ignored.

Error cases

  • Returns #NUM! if any value is <= 0, or if no numeric values are provided.

Examples

Find the geometric mean of 4, 8 and 12.

Formula =GEOMEAN(4,8,12)

Expected result 7.26848237132856

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?.

Pass one three-element array to compute the geometric mean.

Formula =GEOMEAN({4,8,12})

Expected result 7.26848237132856

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?.

With a single positive factor, the geometric mean is the factor itself.

Formula =GEOMEAN(7)

Expected result 7

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?.

A division error among 4 and 12 prevents computing the geometric mean.

Formula =GEOMEAN(4,1/0,12)

Expected result #DIV/0!

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?.

Geometric mean from scalar values

Formula =GEOMEAN(4,16)

Expected result 8

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?.

Geometric mean from a range

Formula =GEOMEAN(A1:A3)

Input cells
A
11
23
39

Expected result 3

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?.

FAQ

When does GEOMEAN return #NUM!?

GEOMEAN returns #NUM! if any numeric value is <= 0 or if no numeric values exist.

Implementation

Engine source

On this page