ExcelFunctions.net Logo

The Excel LN Function

Home » Excel-Built-In-Functions » Excel-Math-Functions » Excel-Ln-Function

Search this site:
Custom Search
Related Function :
Natural Logarithm

The Logarithm of a number, to a given base, is the power to which the base must be raised to give that number.

The Natural Logarithm of a number, (generally written as Ln(x) or Loge(x) ), is the logarithm to the base e.

Therefore,

If   ex = y   Then   Ln(y) = x

Basic Description

The Excel LN function calculates the natural logarithm of a given number.

The format of the function is :

LN( Number )

where the Number argument is a positive real number that you want to calculate the natural logarithm of.


Examples

In the example below, the Excel Ln function is used to calculate the natural logarithms of different numbers.

The format of the functions is shown in the spreadsheet on the left and the result is shown in the spreadsheet on the right.

 Formulas
  A

1

=LN( 1 )

2

=LN( 100 )

3

=LN( 0.5 )
 Results
  A B

1

0   e0 = 1; Therefore, Ln(1) = 0

2

4.605170186   e4.605170186 = 100; Therefore, Ln(100) = 4.605170186

3

-0.693147181   e- 0.693147181 = 0.5; Therefore, Ln(0.5) = - 0.693147181


Further examples of the Excel Ln function can be found on the Microsoft Office website.


Common Errors

If you get an error from your Excel Ln function, use the following table to diagnose the likely cause :

#NUM! - Produced if the supplied Number argument is negative or zero
#NAME? - Produced if the supplied Number argument or the supplied Base argument is not a numeric value






Valid XHTML 1.0 Transitional

Disclaimer Privacy Policy

Copyright © 2008-2011 ExcelFunctions.net