IMSUM Function (Calligra Sheets)
Add complex values in Calligra Sheets with IMSUM. See component-based examples, cancellation checks, variable argument counts and text-input cautions.
Verification status: Selected formulas were executed through the Calligra Sheets 25.04.2 calculation engine library. Complex outputs are reported as components, not GUI-cell display. Version 26.08.2 was source-checked only. How formula examples are checked
Quick answer: =IMSUM(COMPLEX(3;4);COMPLEX(1;-2)) gives (4,2) in the tested Calligra calculation engine. The pair gives the real and imaginary components, not worksheet display text.
Availability and version history
- Introduced: First release not established; the name is present in Calligra 2.4.0 source.
- Supported in: Calligra Sheets 26.08.2, with no retirement established.
- Scope: Desktop Sheets with the Engineering module. Examples use English semicolon-separated formulas.
- Checked: October 14, 2026. Formulas were executed through the official 25.04.2 engine library and checked against source and independent mathematics. This is not GUI-cell or workbook-import evidence; 26.08.2 was source-checked, not executed.
What IMSUM returns
IMSUM adds complex numbers by adding their real components and their imaginary components separately. It returns a complex value even when the resulting imaginary component is zero. It does not add magnitudes or combine displayed strings character by character. Function help.
Syntax and arguments
=IMSUM(value1[;value2;…])
At least one argument is required; further arguments are optional. The registration accepts arrays, and the implementation walks their entries, but the executed examples here use scalar arguments rather than workbook ranges. Brackets mark an optional argument and are not entered in a formula. Registration and implementation, with versioned help.
Reproducible engine examples
Results are shown as (real,imaginary) component pairs, rounded to twelve decimal places, not a literal cell format. A component rounded to zero is shown as 0; the stored value may still contain a tiny residual or signed zero. NaN means not-a-number; infinity and NaN are not finite results.
| Formula | Engine result |
|---|---|
=IMSUM(COMPLEX(3;4);COMPLEX(1;-2)) |
(4,2) |
=IMSUM(COMPLEX(3;-4);COMPLEX(1;2)) |
(4,-2) |
=IMSUM(COMPLEX(-3;4);COMPLEX(2;1)) |
(-1,5) |
=IMSUM(COMPLEX(-3;-4);COMPLEX(2;-1)) |
(-1,-5) |
=IMSUM(COMPLEX(1;0);COMPLEX(2;0)) |
(3,0) |
=IMSUM(COMPLEX(0;1);COMPLEX(0;2)) |
(0,3) |
=IMSUM(COMPLEX(-1;0);COMPLEX(0;1)) |
(-1,1) |
=IMSUM(COMPLEX(0.5;0.25);COMPLEX(0.25;-0.5)) |
(0.75,-0.25) |
Practical worksheet
Suppose two modeled contributions are 3+4i and 1−2i in the same units. =IMSUM(COMPLEX(3;4);COMPLEX(1;-2)) gives 4+2i. Its magnitude is √20, approximately 4.472135955000, rather than the sum of the individual magnitudes 5+√5. This distinction matters whenever phase affects addition.
Keep real and imaginary inputs in separate labeled columns. If A2:B2 contains 3 and 4, and C2:D2 contains 1 and −2, use =IMSUM(COMPLEX(A2;B2);COMPLEX(C2;D2)). This explicit construction avoids relying on a text parser to interpret imported labels.
Advanced interpretation and checks
A third contribution −4−2i exactly cancels the first two in the executed example: =IMSUM(COMPLEX(3;4);COMPLEX(1;-2);COMPLEX(-4;-2)) gives (0,0). This is a useful balanced-input check, but arbitrary floating-point sums need not cancel exactly.
Mathematically addition is commutative and associative. Finite-precision evaluation can still depend on order when very large and very small components are mixed. Preserve unrounded inputs and compare a residual against a scale-appropriate tolerance rather than treating a rounded display as proof of exact cancellation.
Input boundaries and cautions
The tested literal texts “3+4i” and “3+4j” were both accepted. Invalid text “abc” and an empty string were converted to zero, so adding either to 2 returned 2. This can conceal a missing contribution. Validate imported fields before calling IMSUM; a plausible result is not validation of the original text.
TRUE became the real number 1. One numeric argument was accepted, three were accepted, and no arguments produced #VALUE!. A blank cell, a text cell and an empty string are different inputs; only the cases shown below were executed.
| Formula | Engine result |
|---|---|
=IMSUM("3+4i";"1-2i") |
(4,2) |
=IMSUM("3+4j";"1-2j") |
(4,2) |
=IMSUM("abc";2) |
(2,0) |
=IMSUM("";2) |
(2,0) |
=IMSUM(TRUE();2) |
(3,0) |
=IMSUM() |
#VALUE! |
=IMSUM(3) |
(3,0) |
=IMSUM(3;2;1) |
(6,0) |
Conversion evidence
The complex conversion helper explains the text and Boolean cases above. The inspected Engineering module and complex converter are byte-identical between 25.04.2 and 26.08.2. That source comparison does not establish every locale, import path or extreme-value case.
The component callbacks perform the arithmetic, with a shared array walker. Registration, rather than an unreachable helper branch, determines the accepted scalar argument count.
Related guides
Use COMPLEX to construct values from numeric components, IMABS for magnitude, and IMARGUMENT for principal phase.