ReferenceFunctionsMath Functions
LOG
Returns the logarithm of a number for a specified base.
Summary
Returns the logarithm of a number for a specified base.
Remarks
- If
baseis omitted, base 10 is used. numbermust be positive.basemust be positive and not equal to 1.- Invalid domains return
#NUM!.
Examples
Base-10 logarithm
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
3
Base-2 logarithm
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
3
Related functions
FAQ
Which base values are invalid for LOG?
Base must be positive and not equal to 1; otherwise LOG returns #NUM!.
Runtime metadata
Category
Math
Signature
LOG(arg1: Number, arg2…: Number)Arity
min 1, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source