totn Excel Functions

MS Excel: How to use the LN Function (WS)

This Excel tutorial explains how to use the Excel LN function with syntax and examples.

Description

The Microsoft Excel LN function returns the natural logarithm of a number.

The LN function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the LN function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the LN function in Microsoft Excel is:

LN( number )

Parameters or Arguments

number
A numeric value that must be greater than 0.

Returns

The LN function returns a numeric value.
If the number is less than or equal to 0, the LN function will return the #NUM! error.

Applies To

  • Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Function

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel LN function examples and explore how to use the LN function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following LN examples would return:

=LN(A1)
Result: 2.995732274

=LN(A2)
Result: 3.218875825

=LN(A3)
Result: 4.605170186

=LN(200)
Result: 5.298317367