# Excel LOG Function

This post will guide you how to use Excel LOG function with syntax and examples in Microsoft excel.

### Description

The Excel LOG function returns the logarithm of a given number based on a supplied base. And the default base argument is 10.

The LOG function is a build-in function in Microsoft Excel and it is categorized as a Math and Trigonometry Function.

The LOG function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

### Syntax

The syntax of the LOG function is as below:

`= LOG (number,[base])`

Where the LOG function arguments are:

• number – This is a required argument. The number that you want the logarithm. And the number must be a positive real number.
• Base – This is an optional argument. The base of the logarithm. If the base is omitted, the base argument will be set to 10.

Note:

• If either the supplied number argument or base argument is negative or zero, the LOG function will return #NUM! Error.
• If the base argument is equal to 1, the LOG function will return #DIV/0! Error.
• If the number argument or the base argument is non-numeric, the LOG function will return #VALUE! Error.

### Excel LOG Function Examples

The below examples will show you how to use Excel LOG Function to calculate the logarithm of a given number, to a supplied base.

1# to get the logarithm of 20, and using the default base argument, enter the following formula in Cell B1.

`= LOG(20)` 2# to get the logarithm of 25 with base 3, enter the following formula in Cell B2.

`=LOG(25,3)` 3# to get the logarithm of 10 with base e (2.71828), enter the following formula in Cell B2.

`=LOG(10,2.71828)` ### Related Functions

• Excel LOG10 function
The Excel LOG10 function returns the base-10 logarithm of a given number.The syntax of the LOG10 function is as below:= LOG10 (number)…
• Excel LN function
The Excel LN function returns the natural logarithm of a given number.  And the natural logarithms are based on the constant e (the value is equal to 2.718281828…). The syntax of the LN function is as below:= LN (number)…
Related Posts

Excel DVAR Function

This post will guide you how to use Excel DVAR function with syntax and examples in Microsoft excel. Description The Excel DVAR Function will get the variance of a population based on a sample of numbers in a column in ...

Excel DSUM Function

This post will guide you how to use Excel DSUM function with syntax and examples in Microsoft excel. Description The Excel DSUM Function will add the numbers in a column or database that meets a given criteria. And so you ...

Excel DSTDEVP Function

This post will guide you how to use Excel DSTDEVP function with syntax and examples in Microsoft excel. Description The Excel DSTDEVP returns the standard deviation of a population based on the entire population of numbers in a column or ...

Excel DSTDEV Function

This post will guide you how to use Excel DSTDEV function with syntax and examples in Microsoft excel. Description The Excel DSTDEV returns the standard deviation of a population based on a sample of numbers in a column or database ...

Excel DMIN Function

This post will guide you how to use Excel DMIN function with syntax and examples in Microsoft excel. Description The Excel DMIN returns the minimum value from a database or a column of a list that matches the specified conditions. ...

Excel DPRODUCT Function

This post will guide you how to use Excel DPRODUCT function with syntax and examples in Microsoft excel. Description The Excel DPRODUCT returns the product of values from a set of records that match criteria that you specify. The DPRODUCT ...

Excel XIRR Function

This post will guide you how to use Excel XIRR function with syntax and examples in Microsoft excel. Description The Excel XIRR function returns the internal rate of return for a series of cash flows that is not necessarily periodic. ...

Excel VDB Function

This post will guide you how to use Excel VDB function with syntax and examples in Microsoft excel. Description The Excel VDB function calculates the depreciation of an asset for a specified period based on the double declining balance method. ...

Excel SYD Function

This post will guide you how to use Excel SYD function with syntax and examples in Microsoft excel. Description The Excel SYD function calculates the sum-of-years’digits depreciation of an asset for a specified period. And it will return a numeric ...

Excel SLN Function

This post will guide you how to use Excel SLN function with syntax and examples in Microsoft excel. Description The Excel SLN function calculates the depreciation of an asset for one period based on the straight line depreciation. And it ...

Sidebar