### Excel LN Function

##### Associated Files Download Links

In this Article

This Excel Tutorial demonstrates how to use the **Excel LN Function** in Excel to calculate the natural logarithm to a number, with formula examples.

## LN Function Description:

The LN Function Calculates the natural logarithm of a number.

## Formula Examples:

Example | Formula | Result |
---|---|---|

1 | =LN(C5) | -2.30258509299405 |

2 | =LN(C6) | -0.693147180559945 |

3 | =LN(C7) | -0.105360515657826 |

4 | =LN(C8) | 0 |

## Syntax and Arguments:

The Syntax for the LN Formula is:

1 |
=LN(number) |

### Function Arguments ( Inputs ):

**number** – A number.

## Additional Notes

Use the LN Function to calculate the natural logarithm of a number. Simply enter any number directly into the formula, or reference a cell containing a number.

## LN Examples in VBA

You can also use the LN function in VBA. Type:

`application.worksheetfunction.ln(number)`

For the function arguments (number, etc.), you can either enter them directly into the function, or define variables to use instead.

1 |
Application.WorksheetFunction.Ln(5) |

will return the natural logarithm of number 5, which is 1.6094

Also, we can use an existing cell as an input parameter, so if we enter the following VBA command

1 |
Range("B1") = Application.WorksheetFunction.Ln(Range("A1")) |

and the value in cell A1 is 4, we will get the following result:

Return to the List of all Functions in Excel

## How to use the LN Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:

`=AND(`

After entering it in the cell, notice how the AND formula inputs appear below the cell:

You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=LN(” into a cell, without leaving the cell, use the shortcut **CTRL + A** (**A** for **A**rguments) to open the “Insert Function Dialog Box” for detailed instructions:

For more information about the LN Formula visit the

Microsoft Website.