Practice free

IMLN function

IMLN returns the natural logarithm of a complex number as text in complex number form. To get a plain number, wrap the result in IMREAL or IMAGINARY.

Example

Read it as a sentence: find the natural log of the complex number 1+i, then keep only its real part, which gives 0.346573590279973.

Practice this in the app

Syntax

IMLN(inumber)

inumber (required)
A complex number as text, like "3+4i".

Returns: The result as a complex number in text form.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=IMLN("3+4i") 1.6094379124341+0.927295218001612i "3+4i"
=IMLN("3+4j") 1.6094379124341+0.927295218001612j Suffix j
=IMLN(5) 1.6094379124341 Pure real number 5
=IMLN("5") 1.6094379124341 Pure real text "5"
=IMLN("i") 1.5707963267949i Pure imaginary "i"
=IMLN("-2i") 0.693147180559945-1.5707963267949i "-2i"
=IMLN(0) #NUM! Zero
=IMLN("3+4I") #NUM! Uppercase I

Watch out for

  • Result is text; wrap in IMREAL or IMAGINARY to get a number.

Where it works

Excel
IMLN is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .