GAMMALN function: Description, Usage, Syntax, Examples and Explanation
What is GAMMALN function in Excel?
Syntax of GAMMALN function
GAMMALN(x)
The GAMMALN function syntax has the following arguments:
- X Required. The value for which you want to calculate GAMMALN.
GAMMALN formula explanation
- If x is nonnumeric, GAMMALN returns the #VALUE! error value.
- If x ≤ 0, GAMMALN returns the #NUM! error value.
- The number e raised to the GAMMALN(i) power, where i is an integer, returns the same result as (i – 1)!.
- GAMMALN is calculated as follows:where:
Example of GAMMALN function
Steps to follow:
1. Open a new Excel worksheet.
2. Copy data in the following table below and paste it in cell A1
Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.
You can adjust the column widths to see all the data, if need be.
Formula | Description | Result |
=GAMMALN(4) | Natural logarithm of the gamma function at 4. | 1.7917595 |