IMSUB Function
Subtracts one complex number from another.
Category
Engineering
Available in
All versions, Microsoft 365
Returns
Complex number text
Want to practice IMSUB in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox
Overview
IMSUB returns inumber1 − inumber2, subtracting the real and imaginary parts separately.
The result is text, shown to 15 significant digits. Wrap it in IMREAL or IMAGINARY to get a number you can format or round.
Syntax
=IMSUB(inumber1, inumber2) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| inumber1 | Yes | The number to subtract from. |
| inumber2 | Yes | The number to subtract. |
Examples
Example 1 — Differences
Each row subtracts column B from column A.
C2fx=IMSUB(A2,B2)
| A | B | C | |
|---|---|---|---|
| 1 | First | Second | Difference |
| 2 | 3+4i | 5-3i | -2+7i |
| 3 | 10+5j | 4+5j | 6 |
| 4 | 7 | 2i | 7-2i |
=IMSUB(A2,B2) Explain
Common mistakes
- #NUM! The text isn't a valid complex number — for example a space ("3 + 4i"), a capital I, or a letter other than i or j.
- Using a minus sign. =A2-B2 returns #VALUE! because complex numbers are text. Use IMSUB.
Notes
- Related functions: IMSUM, IMDIV, IMCONJUGATE.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.