Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the LOG function. |
| [base] | (Optional.) Parameter of the LOG function. |
Examples
Base 10 (default)
=LOG(1000)
Base 2 (binary)
=LOG(256, 2)
Custom base
=LOG(81, 3)
Common Errors
The number must be positive and the base must be positive and not equal to 1. =LOG(-5), =LOG(10, 0), or =LOG(10, 1) all return #NUM!.
Non-numeric arguments return #VALUE!.
Tips
=LOG(100) returns 2 because the base defaults to 10. Always specify the base explicitly if you mean something other than 10.
=CEILING(LOG(n, 2), 1) gives the number of bits needed to represent n values. Essential for computer science calculations.
pH = -LOG(hydrogen_ion_concentration). The LOG function directly models the pH scale used in chemistry.
Try LOG in Viztab
Import your data and use LOG with 370+ other formulas. No signup required.
Open Viztab