Excel LN Function
The LN function returns the natural logarithm of a given number. It is the given number’s logarithm to the base of the mathematical constant e, where e equals 2.718281828459 approximately.
The LN function returns a positive numeric value.
- Number, the only argument in the LN function, should be supplied as a numeric value.
- LN function will return the #VALUE! error if number is non-numeric.
- LN function will return the #NUM! error if number ≤ 0.
- Set the number to constant e (2.718281828), the value of 1 will be returned.
- LN is the inverse of EXP. In other words, the input to the LN function is the output of the EXP function, vice versa. EXP returns e raised to the power of a number.
Supposing, you want to round the numbers to even integers in the table below. Please do as follows.
1. Copy the formula below into cell C4.
2. Then drag the fill handle down to the cells you want to apply this formula too. The results are as the following screenshot shows.
- The given number in B6 is the constant e, and also the result returned from the EXP formula:
- The LN formula in C6 can be seen as this:
=LN (EXP(1)) >>> returns 1, the natural logarithm of the constant e.
- The given number in B7 is also the result returned from the EXP formula:
- The LN formula in C7 can be seen as this:
=LN (EXP(4)) >>> returns 4, the natural logarithm of e raised to the power of 4.
- We can directly input value in the number argument in the formula. For example, the formula in cell C4 can be changed to:
=LN (1) >>> returns 0
Excel EVEN Function
The EVEN function rounds numbers away from zero to the nearest even integer.
Excel EXP Function
The EXP function returns the result of the constant e raised to the nth power.