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

ArgumentRequired?What it does
inumber1YesThe number to subtract from.
inumber2YesThe number to subtract.

Examples

Example 1 — Differences

Each row subtracts column B from column A.

C2fx=IMSUB(A2,B2)
ABC
1FirstSecondDifference
23+4i5-3i-2+7i
310+5j4+5j6
472i7-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

Kyle Stott

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.