
Build a complex number from real and imaginary parts in Excel. Useful when the parts start in separate cells and you want one valid complex value for other IM functions.
COMPLEX builds a complex number from separate real and imaginary parts. If your worksheet stores those parts in different cells, this function turns them into one valid complex value such as 3+4i or 50+30j.
This matters because Excel's complex-number functions work with complex values as text in a specific format. COMPLEX gives you a clean way to create that format instead of typing the string by hand every time.
Combines real and imaginary parts into one valid complex result.
Returns a value like 3+4i or 50+30j.
=COMPLEX(real_num, i_num, [suffix])
The formula has two required numeric parts and one optional notation choice. real_num supplies the value on the real axis, i_num supplies the coefficient of the imaginary unit, and suffix tells Excel whether to write the result with i or j.
For example, =COMPLEX(3,4) returns 3+4i, while =COMPLEX(3,4,"j") returns 3+4j. The numeric value is the same in both cases. Only the displayed notation changes.
One useful detail is that COMPLEX builds the text format expected by Excel's IM functions. That means the result can be passed directly into formulas such as IMSUM, IMSUB, IMREAL, or IMAGINARY without extra cleanup.
"i" or "j". If omitted, Excel uses "i".real_num and i_num are usually ordinary numbers or cell references. They do not need to be text. Excel combines them into one valid complex-number result, so a formula like =COMPLEX(B1,B2) works naturally when the two components are stored in separate worksheet cells.
suffix is optional, but it matters for notation consistency. In mathematics, i is the usual symbol for the imaginary unit. In electrical engineering, j is often preferred because i may already represent current. Excel allows either one, but it does not accept other suffixes.
It is also worth noting how zero values affect the result. If i_num is 0, Excel can return a purely real-looking value such as 10. If real_num is 0, the result can be purely imaginary, such as 2i or 2j. The formula is still producing a valid complex-number result in both cases.
COMPLEX is for creating a complex value, while the IM functions usually calculate with one:
| Function | What it does | Typical use | Result |
|---|---|---|---|
COMPLEX |
Builds a complex number | Create valid input for other IM functions | Complex text |
IMSUM |
Adds complex numbers | Total complex values | Complex text |
IMREAL |
Returns the real part | Read one part from a complex value | Number |
IMAGINARY |
Returns the imaginary part | Read the other part from a complex value | Number |
The main use is building a valid complex value from separate inputs. That is helpful when the real and imaginary parts are already stored in different cells and you want to pass the result into another complex-number formula such as IMSUM or IMSUB.
The optional suffix matters when your worksheet needs j instead of i. Excel supports both, but you should stay consistent within the same workflow so your formulas are easier to read and maintain.
COMPLEX can also return results that look simpler than you might expect. If the imaginary part is 0, Excel can return just the real number as a complex value. If the real part is 0, the result can be purely imaginary, like 2i.
This is the standard use of COMPLEX: take a real component and an imaginary component from separate inputs and assemble them into one valid complex value. That is especially helpful when later formulas need a proper Excel complex-number string rather than two separate numeric cells.
=COMPLEX(3, 4) // Returns "3+4i"
Create a complex number with Real=3 and Imaginary=4. Formula: =COMPLEX(3, 4).
The mathematics is the same as the previous example, but the notation changes from i to j. That matters in engineering contexts where j is the preferred symbol for the imaginary unit, especially in impedance and AC circuit work where i might already represent current.
=COMPLEX(50, 30, "j") // Returns "50+30j"
Assemble impedance using Real=50 and Reactance=30 with suffix "j". Formula: =COMPLEX(50, 30, "j").
A complex-number workflow does not stop being useful just because one side is zero. This formula produces a valid complex result from a purely real input, which means the value can still move through the same IM-function pipeline as other complex values without needing separate logic for the zero-reactance case.
=COMPLEX(10, 0) // Returns "10"
Create a complex number with Real=10 and Imaginary=0. Formula: =COMPLEX(10, 0).
When the real component is zero, Excel returns a purely imaginary result such as 2i. That is useful when the worksheet needs to represent a value that exists only on the imaginary axis, while still keeping it in the format expected by the rest of the engineering functions.
=COMPLEX(0, 2) // Returns "2i"
Create a purely imaginary number with Real=0 and Imaginary=2. Formula: =COMPLEX(0, 2).
Tell your friends about this post