Summary

The Excel IMAGINARY function returns the imaginary coefficient of a complex number given in the form x + yi or x + yj.

Purpose 

Get imaginary coefficient of complex number

Return value 

Imaginary coefficient as number

Syntax

=IMAGINARY(inumber)
  • inumber - A complex number.

How to use 

The Excel IMAGINARY function returns the imaginary coefficient of a complex number in the form x + yi or x + yj. For example:

=IMAGINARY("5+3i") // returns 3

In the example shown, the formula in D6, copied down, is:

=IMAGINARY(B6)

Notes:

  • Only lowercase "j" and "i" are accepted by IMAGINARY. Other values will result in the #NUM error.
Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.