# How to Use Excel LN Function?

Excel LN Function: Excel LN function is designed to calculate the natural logarithm of a number and gives the corresponding numeric value as an output. The Natural logarithms are usually based on the constant e (2.71828182845904 is a value of e). We all know that Excel provides various formulas and functions to perform mathematical operations.

Let’s see the usage of the Excel LN Function with its syntax, description, and examples. Get an official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

## Description of LN Function

• This function returns the natural logarithm of a number.
• The natural logarithm is based on the constant “e” (2.71828182845904).
• For example, LN(56) returns the natural logarithm number 4.025352.

## Syntax

• Here, you will see the syntax of the LN function.
• To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
• Once you enter the formula, just click on the button to get the result.

=LN(number)

Parameter Description:

• Number – The input number to which you want the natural logarithm value.

Note:
1) LN Function is the inverse of the EXP (exponential) function.
2) If you give non-numeric values such as letters and special characters to the argument, it will return #VALUE! Error.
3) If the argument is a negative number, it shows #NUM! Error.

## Examples

Here, we come up with some examples to know how to use the LN function in the Excel spreadsheet.

• Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
• For instance, we have given a range of values in Column B and we will get the natural logarithm of these numbers using the LN function.
• Then, you have to enter the formula in the cell as shown below to get the result.
• After entering the formula, you need to click the button to get the output, as shown below. You can drag down the cell to fill the remaining cells.

## Input that Causes Error

• If the argument is a negative number, it shows #NUM! Error.
• If you use any non-numeric value (letters and symbols) as the input number, it returns #VALUE! Error.