Skip to main content

Excel GAMMALN function

The GAMMALN function returns the natural logarithm of the gamma function, Γ(n).

GAMMALN Function VS. GAMMALN.PRECISE Function

Starting from Excel 2010, the GAMMALN function has been replaced by the GAMMALN.PRECISE function. Although they can both be used to calculate the natural logarithm of the gamma function, the GAMMALN.PRECISE function is more recommended for future use, as it works more accurately.

Syntax

=GAMMALN(x)

Arguments

x (required): The value for which you want to calculate GAMMALN.

Remarks

1. The #VALUE! error occurs if x is nonnumeric;
2. The #NUM! error occurs if x ≤ 0;
3. The equation for the GAMMALN function is as follow:

Return value

It returns a numeric value.

Example

To calculate the natural logarithm of the gamma function of the given values in the table below, you can apply the GAMMALN function as follows.

Select a cell (such as C6 in this case), enter the formula below and press the Enter key to get the first result. Select this formula cell and drag its AutoFill Handle down to get the rest of the results.

=GAMMALN(B6)

Notes: The argument in the formula above is supplied as a cell reference. You can directly type the value in the formula. Here the formula in C6 can be changed to:

=GAMMALN(1)


Related Functions

Excel GAMMA function
The GAMMA function returns the value of the gamma function for a specified number.

Excel GAMMA.DIST function
The GAMMA.DIST function returns the gamma distribution.

Excel GAMMADIST Function
The GAMMADIST function returns the gamma distribution.

Excel GAMMA.INV Function
The GAMMA.INV function returns the inverse of the gamma cumulative distribution.

Excel GAMMAINV Function
The GAMMAINV function returns the inverse of the gamma cumulative distribution.

Excel GAMMALN.PRECISE function
The GAMMALN.PECISE function returns the natural logarithm of the gamma function, Γ(n).


The Best Office Productivity Tools


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations