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

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

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

#### Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

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