Excel COMPLEX Function: Syntax, Examples & Tips

The COMPLEX function creates complex numbers from real and imaginary parts, aiding in advanced data analysis in Excel.
Excel
=COMPLEX(real_num, i_num, [suffix])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single COMPLEX formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a COMPLEX Formula in Excel?
  3. A Practical Example
  4. COMPLEX Formula
  5. Result of the Formula
  6. Why Use COMPLEX?
  7. Key Takeaways:
  8. Example use case

Parameters

real_num:
The real number component of the complex number you want to create.

i_num:
The imaginary number component of the complex number you want to create.

suffix:
An optional text string that specifies the suffix to append to the imaginary part of the complex number. If omitted, the default suffix "i" is used.

What is a COMPLEX Formula in Excel?

The COMPLEX function in Excel is a useful tool that allows you to convert real and imaginary coefficients into a complex number in the form of "x + yi". This function is particularly helpful in mathematical and engineering applications where complex numbers are frequently used.

In simpler terms, the COMPLEX function helps you create complex numbers from their real and imaginary parts, making it easier to perform calculations involving complex numbers.

A Practical Example

Imagine you are working on a project that involves electrical engineering, and you need to represent impedance values as complex numbers. You have the following data in an Excel spreadsheet:

Impedance Data Table:

Resistance (Ohms)Reactance (Ohms)
43
52
61
70
8-1

You want to convert these resistance and reactance values into complex numbers.

COMPLEX Formula

To convert the resistance and reactance values into complex numbers, you would use the COMPLEX formula as follows:

Excel
=COMPLEX(A2, B2)

Breakdown of the Formula:

  • A2: This is the real part of the complex number (Resistance).
  • B2: This is the imaginary part of the complex number (Reactance).

Result of the Formula

When you apply the formula to the first row, it converts the resistance and reactance values into a complex number. The output would be:

Complex Impedance
4 + 3i

Here, the complex impedance is represented as 4 + 3i, where 4 is the resistance and 3 is the reactance.

Why Use COMPLEX?

The COMPLEX function is particularly useful when you need to work with complex numbers in calculations, such as in electrical engineering, physics, or any field that involves waveforms and alternating currents. It allows you to easily create and manipulate complex numbers without manually formatting them.

Key Takeaways:

  • COMPLEX: Converts real and imaginary coefficients into a complex number.
  • Simplifies Calculations: Makes it easier to work with complex numbers in various applications.
  • Common Use Cases: Ideal for engineering calculations, signal processing, and any scenario involving complex numbers.

Understanding how to use the COMPLEX function can significantly enhance your mathematical capabilities in Excel, enabling you to work effectively with complex numbers in your datasets.

Happy calculating!

Example use case

You have a table where Column A contains the names of different products and Column B contains their corresponding sales figures represented in different currencies (e.g., USD, EUR, GBP). You can use the COMPLEX function to convert the sales figures into a complex number format, allowing you to represent both the amount and the currency in a single cell. This can be useful for financial analysis and reporting, as it simplifies the presentation of multi-currency sales data without the need for separate columns for currency type.

Beyond the COMPLEX function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.