Skip to content

How to Use Excel COMPLEX Function?

Listen to this article.

COMPLEX Function in Excel: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It helps to perform calculations on your PC. Sometimes, we want to use complex numbers in the spreadsheet. At that time, we can use the COMPLEX function to quickly finish the task.

Here we come up with the COMPLEX Function in Excel with its syntax, description, and examples. Get an official version of MS Excel from the following link:

Excel COMPLEX FunctionPin
Excel COMPLEX Function

Description of COMPLEX Function

  • It is one of the built-in functions in Microsoft Excel.
  • This function will convert a real and imaginary coefficient into a complex number in the form of a+bi.
  • Where a and b is a real numbers. “i or j” is an imaginary number.
  • A is a real part, and bi is an imaginary part.
  • The sample complex numbers are 2+3i and 4-2i.


  • Here, you will see the syntax of the COMPLEX function.
  • To apply this function on your spreadsheet, you must select a cell and enter the formula in the following format.
  • Once you enter the formula, click the Enter button to get the result.

=COMPLEX(real_num, i_num, [suffix])

Parameters Description:

  • Real_num – It is the real coefficient of the complex number.
  • I_num – It is the imaginary coefficient of the complex number.
  • The suffix – This is optional. It is the suffix for the imaginary component of the complex number. If it is not mentioned, it will assign “i” automatically.

1) If either a real_num or i_num is a non-numeric, it returns #VALUE! Error.
2) If the suffix is neither “i” nor “j“, it returns #VALUE! Error.


Let’s see an example to make it clear how the COMPLEX function works in the spreadsheet.

  • Initially, you have to open your Excel workbook on your PC and launch the worksheet with data.
  • For instance, we have given the input values in the range B3:D6. And we will get the Complex numbers of given values using the COMPLEX function.
Input ValuesPin
Input Values
  • Then, you have to enter the formula in the cell as shown below to get the result.
Enter the formulaPin
Enter the formula
  • After entering the formula, you need to click the Enter button to get the output.
  • Once you get the output for the first cell, then you need to drag down that cell to fill the remaining cells, as shown in the below screenshot.

Input that Causes Error

  • If either a real_num or i_num is a non-numeric, it returns #VALUE! Error.
  • If the suffix is neither “i” nor “j,” it returns #VALUE! Error.
Value ErrorPin
Value Error


This article teaches you how to use the COMPLEX Function in Excel with its syntax, description, and examples. Kindly give your feedback in the comment section. To learn more about Excel functions, then visit our webpage

Video Tutorial

The following video will show you how to apply the Excel COMPLEX function in the worksheet.

Similar Articles:


Leave a Reply

Your email address will not be published. Required fields are marked *

Share to...