The GEOMEAN function in Excel is a powerful tool used to find the geometric mean of a set of positive numbers. This function is particularly useful in financial analyses, where multiplicative processes are involved, or for determining average rates of return across multiple time periods. Unlike the arithmetic mean, the geometric mean is less affected by extreme values and provides a more reliable representation in certain scenarios.
Syntax
GEOMEAN(number1, [number2], ...)
- number1: The first number or range of numbers for which you want to calculate the geometric mean.
- number2: (Optional) Additional numbers or ranges of numbers. Up to 254 arguments can be included.
Example #1
=GEOMEAN(1, 3, 9)
This function calculates the geometric mean of the values 1, 3, and 9, resulting in 3.
Example #2
=GEOMEAN(A1:A5)
Assuming the cells A1 to A5 contain the numbers 2, 8, 4, 16, and 32, this will compute the geometric mean of those values, yielding 8.
Example #3
=GEOMEAN(0.5, 2, 8)
This calculates the geometric mean of the values 0.5, 2, and 8, resulting in 2.
Error handling
- NUM!: This error occurs if the data set includes negative numbers or zeros, as geometric means are only applicable to positive values.
- VALUE!: This error indicates that one of the arguments is not a number or is in an incorrect format.