Skip to content
Excel

GAMMALN function in Excel

Returns the natural logarithm of the gamma function, Γ(x)

=GAMMALN(x)

GAMMALN syntax and parameters

One argument, one required.

  • xnumberRequired

    The value for which you want to calculate GAMMALN.

GAMMALN examples

Formulas you'll actually reuse.

  1. ln Γ(x) — for x = 6 this is ln(120), i.e. ln(5!):

    =GAMMALN(B2)

    Result4.7875

  2. A factorial via the gamma function — works for non-integers too:

    =EXP(GAMMALN(B2 + 1))

    Result120

GAMMALN in Google Sheets

Same name — your formula ports as-is.

Try GAMMALN in the playground

Edit the example — nothing to install.

Preloaded with the GAMMALN formula from Example 1 — change anything and watch it respond.

Loading the editor…