Practice free

IMREAL function

IMREAL returns the real part of a complex number as a number, not text. A complex number is one written in x+yi form, such as 3+4i.

Example

Read it as a sentence: pull out the real part of the complex number 3+4i, which gives 3.

Practice this in the app

Syntax

IMREAL(inumber)

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

Returns: The real coefficient as a number.

What Excel actually returns

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

FormulaExcel showsCase
=IMREAL("3+4i") 3 "3+4i"
=IMREAL("3+4j") 3 Suffix j
=IMREAL(5) 5 Pure real number 5
=IMREAL("5") 5 Pure real text "5"
=IMREAL("i") 0 Pure imaginary "i"
=IMREAL("-2i") 0 "-2i"
=IMREAL("3+4I") #NUM! Uppercase I
=IMREAL("abc") #NUM! Invalid text

Watch out for

  • Returns a number, not text.

Where it works

Excel
IMREAL 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 .