ExcelFunctions.net Logo

The Excel LOG Function

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

Search this site:
Custom Search
Related Function :
Logarithm

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

Therefore,

If   ax = b   Then   Lna(b) = x

Basic Description

The Excel LOG function calculates the logarithm of a given number, to a supplied base.

The format of the function is :

LOG( Number, [Base] )

where the arguments are :

Number - The positive real number to calculate the logarithm of
[Base] -

An optional argument that specifies the base to which the logarithm should be calculated

If omitted, the [Base] argument takes the value 10 (i.e. the logarithm to the base 10 is calculated)


Examples

In the example below, the Excel Log function is used to calculate the logarithms of different numbers, using different bases.

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

=LOG( 64, 2 )

2

=LOG( 100 )

3

=LOG( 4, 0.5 )

4

=LOG( 500 )
 Results
  A B

1

6   26 = 64; Therefore, Log2(64) = 6

2

2   102 = 100; Therefore, Log10(100) = 2

3

-2   0.5-2 = 4; Therefore, Log0.5(4) = -2

4

2.698970004   102.698970004 = 500; Therefore, Log10(500) = 2.698970004

Note that, in cells A2 and A4 of the above spreadsheet, the [Base] argument has not been supplied to the function and so, in these examples, base 10 is used.


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


Common Errors

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

#NUM! - Produced if either the supplied Number argument or the supplied Base argument is negative or zero
#DIV/0! - Produced if the supplied Base argument is equal to 1
#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