Contact

IMDIV Function in LibreOffice Calc — Tested Examples

Engineering Beginner LibreOffice Calc

Divide complex numbers in LibreOffice Calc with IMDIV. Work through voltage and impedance inputs, verify complex denominators and reject zero or malformed divisors.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: IMDIV divides its first complex number by its second. A nonzero complex denominator is required; the result is complex-number text.

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 quotient of two complex numbers. Dividing 4+6i by the real number 2 gives 2+3i. The next example gives 3+4i.

Syntax and arguments

=IMDIV(Numerator; Denominator)

LibreOffice Calc formulas generally separate arguments with semicolons (;).

Argument Explanation
Numerator The dividend
Denominator The divisor

Worked examples

Example 1: Divide a complex value by a real value

=IMDIV("4+6i";"2")

Expected result: 2+3i. This value was returned in the LibreOffice Calc 25.2 test.

Example 2: Divide a complex value by a real scalar

=IMDIV("6+8i";"2")

Expected result: 3+4i. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

Dividing 4+6i by the real number 2 gives 2+3i. The next example gives 3+4i.

Mistakes and troubleshooting

  • Check inputs and assumptions: The second argument is the denominator and must not be zero.
  • 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

Accepted complex text and input order

Use a quoted complex literal such as "3+4i", a cell containing that text, or text created by COMPLEX. Lowercase i and j are accepted imaginary-unit symbols. The pinned Calc parser also accepts pure real text such as "2" and pure imaginary text such as "3i"; uppercase I/J are not accepted by that parser.

The result is complex-number text, not an ordinary numeric scalar. Use the IM* functions to process it rather than assuming ordinary subtraction or division of text will implement complex arithmetic. The formatter can omit a zero component or an imaginary coefficient of 1, so 8+j and the mathematical form 8+1j describe the same result.

Stepwise application: divide voltage by impedance

For a synthetic phasor calculation, enter voltage 10+10i in A2 and impedance 2+i in B2. In C2 enter =IMDIV(A2;B2).

The independently expected result is 6+2i. Multiplying numerator and denominator by the denominator’s conjugate gives (10+10i)(2−i)/(2²+1²) = (30+10i)/5. The result is not obtained by separately dividing real by real and imaginary by imaginary.

Add voltage 4-2i in A3 and impedance 1-i in B3. Copy the formula down; the expected result is 3+i, since (4−2i)(1+i)/2 = (6+2i)/2. Units in this example are consistent voltage/impedance units, giving a current phasor. It is a numerical illustration, not a validation of an electrical design.

Advanced check: multiply back

=IMPRODUCT(C2;B2) should recover 10+10i within numerical rounding. For a more sensitive check, compare its real and imaginary components with the original numerator separately. Avoid exact string equality when rounding can produce insignificant decimal differences or equivalent formatting.

The magnitude of the quotient in row2 is =IMABS(C2), independently expected to be approximately 6.32455532. It also equals the ratio of magnitudes for this nonzero denominator. That magnitude has lost the phase information present in 6+2i.

Zero divisors and implementation scope

Both real and imaginary components of the denominator must not be zero together. The pinned Calc source explicitly rejects that case, including text "0" or "0+0i". A tiny nonzero denominator is mathematically valid but may amplify input error or produce an unrepresentably large result. Do not silently replace an invalid denominator with 1 just to suppress an error.

The inspected source does not reject operands merely because one uses i and the other j; division uses the numeric components and the numerator’s stored suffix. This differs from assuming a universal mixed-suffix rule across spreadsheet products. Use consistent lowercase units for portability, and treat this as source review rather than a native compatibility test.

Malformed complex strings are rejected during parsing. The new examples keep unambiguous text and do not certify every locale-specific conversion or error display. Ordinary / applied to complex text is not a substitute for IMDIV.

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.

COUNT · AVERAGE · SUM

Tested version and primary reference

2 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.

Detailed reference checked October 17, 2026