Practice free

IMSUM function

IMSUM adds complex numbers together and returns the sum as text. A complex number is one written in x+yi form, such as 3+4i, with a real part and an imaginary part.

Example

Read it as a sentence: add the complex numbers in W1:W2 (3+4i and 1-2i), which gives 4+2i.

Practice this in the app

Syntax

IMSUM(inumber1, [inumber2], ...)

Arguments in [square brackets] are optional.

inumber1 (required)
The first complex number.
inumber2 (optional)
More complex numbers to add; up to 255.

Returns: The sum as text.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=IMSUM("3+4i","1-2i") 4+2i Two values
=IMSUM("1+i","2","3i") 3+4i Three values
=IMSUM({"1+i","2-i"}) 3 Array constant
=IMSUM("2+i") 2+i Single
=IMSUM(2,3) 5 Numbers
=IMSUM(Data!W1:W2) 4+2i Range (W1:W2 i suffix)
=IMSUM("abc","1") #NUM! Invalid
=IMSUM(TRUE,"1") #VALUE! TRUE

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Result is text.

Where it works

Excel
IMSUM is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .