Go Back

Excel LN Function

Excel LN Function

Figure 1.  Using the Ln Function

Generic Formula



The Excel LN function returns the result as the natural logarithm of the numeric value entered in the cell.

The LN function is an inbuilt function in Microsoft Excel that is categorized as a Math/Trig Function. It can be utilized as a worksheet function (WS) in Microsoft Excel. the LN function can be used as part of the formula in a cell.


The numeric value in the Ln function and must be greater than 0 and The LN function gives a number as result.

In the example below, the Microsoft Excel Ln function is used to get the natural logarithms of numbers


Figure 2. Ln Function Error

Excel Ln Function Errors

If you get an error from the Excel Ln function, this is likely to be one of the following:


#NUM!- This error occurs if the numeric value argument supplied is less than or equal zero.

#VALUE!This error occurs if the supplied number is non-numeric.

Example below:

Figure 3.  Ln Function Error

Usage notes

The natural logarithm function is the equivalent to logarithmic base e of a number. Where e is Euler’s number.

= LN( number) = LOG( number, e)


Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I need a formula to convert the numbers in column A and column B into values to get a linear relationship using the equation ln(k)=-(Ea/R)(1/T)+ln(A)
Solved by T. S. in 26 mins
I need to find cell a1 in one workbook which is equal to "OCDO LN" in every cell in column B of the attached evts spreadsheet and return the description in column U and the date in Column C. I need a return for every time OCDO LN appears in column B (not just the first return). In addition, there may be other text in each cell in column B eg. "OCDO LN, GLEN LN" - I would still need this to return column U and column C
Solved by S. L. in 26 mins
Need help with finding the (ln) of all the numbers in the absorbance column
Solved by X. S. in 18 mins

Leave a Comment