Engineering function

IMSUM function

Adds two or more complex numbers written as text, such as "3+4i" and "5-3i". The result is complex text.

Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac

Excel 2007 and laterWorks in Google Sheets

Syntax

IMSUM(inumber1, [inumber2], ...)
ArgumentWhat it means
inumber1RequiredThe first complex number, cell or range.
inumber2, ...OptionalUp to 255 complex numbers or ranges in total.

Returns: A complex number as text.

How IMSUM works

Because complex numbers live in cells as text, the normal + operator and SUM cannot add them. IMSUM does the job: it adds all the real parts together and all the imaginary parts together. It accepts ranges, so =IMSUM(B2:B10) totals a whole column of complex values.

Typical uses are adding impedances in series, totalling phasors (voltages or currents with phase) and summing vectors written as complex numbers. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.

Examples

1Add two complex numbers

C2fx=IMSUM(A2, B2)
ABC
1z1z2
23+4i5-3i8+i

Result: 8+i

Real parts: 3 + 5 = 8. Imaginary parts: 4 − 3 = 1, written simply as i.

2Series impedances

C2fx=IMSUM(B2:B3)
ABC
1ComponentImpedance (Ω)
2Resistor + coil50+30j70-15j
3Capacitor + resistor20-45j

Result: 70-15j

Impedances in series simply add: (50+20) + (30−45)j = 70−15j. The circuit is slightly capacitive overall.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The text is not a valid complex number — for example it contains spaces (3 + 4i), a capital I, or a misplaced sign.Create the value with COMPLEX or remove spaces with SUBSTITUTE.
#VALUE!The argument is a logical value, or the formula mixes the i and j suffixes.Use one suffix consistently throughout a calculation.

Tips

  • Blank cells in the range are ignored, but text that is not a complex number causes #NUM!.
  • To subtract, use IMSUB; to add a list of real numbers, ordinary SUM is fine.

Google Sheets

IMSUM also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

IMSUM in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishIMAGSUM
DutchC.SOM
FinnishKOMPLEKSI.SUM
FrenchCOMPLEXE.SOMME
GermanIMSUMME
HungarianKÉPZ.ÖSSZEG
ItalianCOMP.SOMMA
Norwegian (Bokmål)IMSUMMER
PolishSUMA.LICZB.ZESP
Portuguese (Brazil)IMSOMA
Portuguese (Portugal)IMSOMA
RussianМНИМ.СУММ
SpanishIM.SUM
TurkishSANÇIKAR