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:
https://www.microsoft.com/en-in/microsoft-365/excel
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.
Syntax
- 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.
Note:
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.
Examples
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.
- Then, you have to enter the formula in the cell as shown below to get the result.
- 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.
Summary
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 Aawexcel.com.
Video Tutorial
The following video will show you how to apply the Excel COMPLEX function in the worksheet.
Similar Articles:
- How to Use Excel FLOOR.MATH Function?
- How to Use Excel FLOOR Function?
- How to Use Excel CEILING.PRECISE Function?
- How to Use Excel CEILING Function?
- How to Use Excel GCD Function?