GAMMA Function
Return the value of the gamma function. For a positive integer n, GAMMA(n) equals the factorial (n-1)!. number can be any number except 0 and the negative integers, which return #NUM!; a number greater than about 171.6 also returns #NUM!, because the result is too large.
Syntax
GAMMA(number)
Category: Statistics. Minimum arguments: 1. Maximum arguments: 1.
Available for supported offline calculation.
Examples
=GAMMA(5)
The formula returns 23.99999999999996, which displays as 24, the factorial 4!. Compare the result with a tolerance rather than for exact equality.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.