Practice free

GAMMALN.PRECISE function

GAMMALN.PRECISE returns the natural logarithm of the gamma function, the same job as GAMMALN with updated accuracy and consistent naming. The value must be above zero.

Example

Read it as a sentence: find the natural log of the gamma function for 5, which gives 3.17805383.

Practice this in the app

Syntax

GAMMALN.PRECISE(x)

x (required)
Positive number.

Returns: The natural logarithm of the gamma function at x.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=GAMMALN.PRECISE(5) 3.17805383 Working example
=GAMMALN.PRECISE("5") 3.17805383 Text-number in first arg
=GAMMALN.PRECISE({5,5}) 3.17805383 Array in first arg (lifts, spills)
=GAMMALN.PRECISE(0.5) 0.572364943 Fraction
=GAMMALN.PRECISE("abc") #VALUE! Non-numeric text in first arg
=GAMMALN.PRECISE(NA()) #N/A Error in first arg
=GAMMALN.PRECISE(0) #NUM! Zero
=GAMMALN.PRECISE(-1) #NUM! Negative

Watch out for

  • x must be above zero.
  • Results are practically identical to GAMMALN.

Where it works

Excel
GAMMALN.PRECISE arrived in Excel 2010. Older versions do not have it.
Google Sheets
Same name, same behaviour for everyday use.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .