IMSUM Function in LibreOffice Calc — Tested Examples
Add complex ranges with LibreOffice IMSUM. Build a three-vector sum, distinguish cancellation from magnitude addition and inspect Calc’s suffix and range parsing rules.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: IMSUM adds real coefficients and imaginary coefficients separately, returning complex-number text. It accepts values, references and ranges with the documented optional arguments below.
Availability and version history
- Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
- Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
Returns the sum of complex numbers. Add real parts separately from imaginary parts: (1+2i)+(3+4i) is 4+6i.
Syntax and arguments
=IMSUM(Complex1 [; Complex2; ...])
Square brackets mark optional arguments; do not type the brackets or ellipsis. Separate arguments with semicolons (;).
| Argument | Explanation |
|---|---|
Complex1 |
First complex value, cell reference or range. |
Complex2; ... |
Optional additional complex values or ranges, up to 255 arguments in the documented syntax. |
Enter a literal complex value as text, for example “2+3i” or “2+3j”; a cell can contain that text instead.
Worked examples
Example 1: Add two complex values
=IMSUM("1+2i";"3+4i")
Expected result: 4+6i. This value was returned in the LibreOffice Calc 25.2 test.
How to interpret the result
Add real parts separately from imaginary parts: (1+2i)+(3+4i) is 4+6i.
Mistakes and troubleshooting
- Check inputs and assumptions: Do not convert the complex-text result to an ordinary real number without selecting a component.
- Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
- Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.
Additional worked application and edge cases
Stepwise example: combine three vector contributions
Enter 3+4j, -2+j and 5-3j in A2:A4. In C2 enter =IMSUM(A2:A4). The independently expected result is 6+2j.
Add the real parts: 3−2+5=6. Add the imaginary parts: 4+1−3=2. The middle input’s j means an imaginary coefficient of 1. The range can be replaced with =IMSUM(A2;A3;A4) for the same mathematical result.
A range counts as one supplied argument. Preserve the documented 255-argument limit, but do not reinterpret it as a 255-cell limit inside every range. Headers and labels should remain outside the range passed to the complex parser.
Second example: a real adjustment
=IMSUM(A2:A4;2) is expected to produce 8+2j. A real adjustment affects only the real coefficient. It does not add 2 to both components.
Cancellation can produce a purely real result. =IMSUM("3+4j";"-3-4j") is mathematically zero and is expected to be formatted as complex text 0. That differs from adding the two magnitudes: each input has magnitude 5, so their magnitude sum is 10, while the magnitude of their vector sum is 0.
Advanced application: compare aggregate magnitude
For the first dataset, =IMABS(C2) is expected to give approximately 6.32455532. The sum of the separate magnitudes is instead approximately 13.06701987: 5+SQRT(5)+SQRT(34). They answer different questions. Use the magnitude of the complex sum when direction and cancellation are part of the intended model.
You can audit the calculation by extracting IMREAL and IMAGINARY from each row and adding those numeric columns separately. The resulting totals should agree with the real and imaginary components of the complex sum, subject to rounding.
Parsing and cross-product compatibility
Use quoted literals or unquoted references to cells containing complex text. The pinned parser accepts lowercase i/j and pure real or pure imaginary text. It rejects unsupported suffixes and arbitrary strings. Keeping all inputs in one consistent notation is easier to audit.
Calc’s inspected component-addition source does not reject values merely because one uses i and another j; it retains the first explicit suffix, or adopts the next when the current accumulator has none. For example, source inspection predicts =IMSUM("1+i";"2+3j") as 3+4i. This is not a fresh native test or a promise of identical behavior in another spreadsheet product.
The complex-list collector skips empty entries but parses nonempty text, so descriptive labels are unsafe inside an intended numeric range. Error cells, malformed text and locale conversions need investigation rather than being silently replaced by zero. Very large or nearly cancelling components can also expose floating-point precision limits.
- Pinned Calc complex parser and formatter, inspected October 17, 2026.
- Pinned Calc component operations, inspected October 17, 2026.
Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.
Related functions
Tested version and primary reference
1 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.