Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the LN function. |
Examples
Natural log of e
=LN(EXP(1))
Continuous growth rate
=LN(2)
Time to double
=LN(2)/0.07
Common Errors
LN requires a positive argument. =LN(0) and =LN(-5) both return #NUM! because logarithms of zero and negative numbers are undefined.
Non-numeric input returns #VALUE!.
Tips
Log return = LN(ending_price / starting_price). Log returns are additive across time periods, making them easier to work with than simple returns.
LN is base-e. For base-10, use LOG10. For any base: log_b(x) = LN(x)/LN(b). Or just use the LOG function.
If your data follows y = a×e^(bx), taking LN of both sides gives LN(y) = LN(a) + bx — a linear equation you can fit with trendlines.
Try LN in Viztab
Import your data and use LN with 370+ other formulas. No signup required.
Open Viztab