=COMPLEX(real_num, i_num, [suffix])
COMPLEX(3,4)
For example, this formula returns the complex number 3+4i.
COMPLEX(-2,3)
The real number is the first argument of the COMPLEX function and the imaginary number is the second argument. For example, the formula above returns the complex number -2+3i.
COMPLEX(ABS(-2),SQRT(9))
The COMPLEX function can also be used with other functions that return real numbers. For example, this formula returns the complex number 2+3i.
COMPLEX(3,0)
The COMPLEX function can also be used to convert real numbers to complex numbers. For example, the above formula returns the complex number 3+0i, which is the same as 3.
The COMPLEX function enables the conversion of real and imaginary coefficients into a complex number which is composed of x + yi or x + yj.