Function · Powers and logs
Excel LOG function
The Excel LOG function returns a logarithm in the base you choose. LOG(1000, 10) is 3. LOG(8, 2) is 3. Leave the base off and it is 10.
Syntax =LOG(number, [base])
=LOG(1000,10)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | A positive number. |
| base | Optional | The base of the logarithm. The default is 10. The base must be positive and not 1. |
Examples
How many tens multiply to 1000
=LOG(1000,10)Result 3
| A | B | |
|---|---|---|
| 1 | Number | 1000 |
| 2 | Base | 10 |
| 3 | Log | 3 |
LOG asks what power of a base produces a number. Ten to the third is 1000, so LOG(1000, 10) is 3. Two to the third is 8, so LOG(8, 2) is 3. Omit the base and Excel uses 10, which makes LOG(1000) the same call as LOG10(1000).
LN is base e and does not take a base argument. A base of 1, a negative number, or zero is #NUM!. Change of base is already what this function does. You do not need to divide LN by LN of the base unless you are checking the arithmetic.