Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.
If this function is not available, run the Setup program to install the Analysis ToolPak. After you install the Analysis ToolPak, you must enable it by using the Add-Ins command on the Tools menu.
Syntax
COMPLEX(real_num,i_num,suffix)
Real_num is the real coefficient of the complex number.
I_num is the imaginary coefficient of the complex number.
Suffix is the suffix for the imaginary component of the complex number. If omitted, suffix is assumed to be "i".
Note All complex number functions accept "i" and "j" for suffix, but neither "I" nor "J". Using uppercase results in the #VALUE! error value. All functions that accept two or more complex numbers require that all suffixes match.
Remarks
Examples
COMPLEX(3,4)
equals 3 + 4i
COMPLEX(3,4,"j")
equals 3 + 4j
COMPLEX(0,1)
equals i
COMPLEX(1,0)
equals 1