Contact

IMAGINARY Function in ONLYOFFICE Spreadsheet Editor: Imaginary Coefficient

Engineering Intermediate ONLYOFFICE Spreadsheet Editor

Extract signed imaginary coefficients with ONLYOFFICE IMAGINARY(inumber), a reproducible dataset, expected results, advanced patterns, and error cautions.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked

Quick answer

Extract the numeric coefficient b multiplying the imaginary unit from a+bi or a+bj. Its exact current English-reference syntax is =IMAGINARY(inumber). This is documented in the official ONLYOFFICE IMAGINARY function reference, checked 2026-10-13 UTC. Any square brackets in the syntax indicate an optional argument; they are not characters to enter in your formula.

Evidence boundary: Vendor claim checks cover purpose/arguments/current documentation; sample results are separately computed mathematical predictions and were not observed in ONLYOFFICE.

Syntax, argument order, types and defaults

=IMAGINARY(inumber)
Argument Required Definition Default
inumber Yes One complex-number value or cell expression in x+yi or x+yj form. None

Argument rule: One required input; no optional argument or default is documented. Numbers with an imaginary unit should use lowercase i or j as specified by the vendor; direct literal coercion beyond the documented notation is not guaranteed. Do not confuse English argument separators with decimal separators.

Build the practice sheet from scratch

In a new worksheet, type the following records. The numbers in B and C must be numeric cells; D contains a lowercase text suffix (i or j). Type the headers into row 1 and the data into rows 2–9. Leave columns E onward empty until entering the formulas. This dataset is original teaching data and does not depend on a downloaded example file.

Row A: Signal B: Real component C: Imaginary component D: Suffix Complex number represented mathematically
2 Calibration 3 4 i 3+4i
3 Offset -5 12 i -5+12i
4 Reactive 0 -2 j 0-2j
5 Reversed -3 -4 i -3-4i
6 Aligned 8 0 i 8
7 Origin 0 0 i 0
8 Quadrant II -1 1 i -1+1i
9 Quadrant IV 1 -1 i 1-1i

Select E2 (outside the input table) and enter =COMPLEX(B2,C2,D2). Fill E2 down through E9. This uses the documented three-argument form and lets every later example read the same complex-number cells. If the calculated text contains a simplified zero term, compare the mathematical number rather than presuming a precise string-rendering convention—the official function pages do not specify all serialization cases. Do not paste explanatory table labels into numeric fields.

Exact worksheet example: coefficients are signed numbers

Use the shared B2:D9 input table and create the complex-number column E with =COMPLEX(B2,C2,D2) filled down. In F2 type =IMAGINARY(E2) and fill down through F9. The intended output is the coefficient, not a string containing i or j.

Row Complex number represented Formula Expected numeric coefficient
2 3+4i =IMAGINARY(E2) 4
3 -5+12i =IMAGINARY(E3) 12
4 -2j =IMAGINARY(E4) -2
5 -3-4i =IMAGINARY(E5) -4
6 8 =IMAGINARY(E6) 0
7 0 =IMAGINARY(E7) 0

Check the sign: For E4, zero real plus −2j is not positive two; the coefficient remains −2. For E3, the real component is −5 but the imaginary coefficient is +12. Do not mistake the sign of the real part for the sign of the imaginary part.

Inline formulas and a numeric cross-check

=IMAGINARY(COMPLEX(2,7,"j")) has expected output 7; =IMAGINARY(COMPLEX(2,-7,"i")) has expected output −7. Lowercase i and j are both supported as COMPLEX suffixes per its official reference. These nested expressions avoid ambiguity about typing a complex value as plain text.

For a direct form =IMAGINARY("3-4i"), the coefficient mathematically equals −4. The vendor describes complex inputs in x+yi / x+yj notation but doesn’t specify every text-coercion case; do not claim this direct literal was natively executed. Prefer COMPLEX if an imported literal fails.

Advanced example: aggregate imaginary components

To find the net imaginary coefficient of two signals, use =IMAGINARY(E2)+IMAGINARY(E4). Rows 2 and 4 represent imaginary coefficients +4 and −2, so the expected numeric result is 2. This is a calculation on extracted coefficients, not the same as summing arbitrary text strings containing letters.

To classify whether reactance is capacitive or inductive under a convention that labels negative imaginary values as capacitive, use:

=IF(IMAGINARY(E4)<0,"Negative imaginary component","Zero or positive imaginary component")

Expected message for E4: Negative imaginary component. The engineering interpretation depends on the user’s chosen circuit sign convention; the formula itself only tests a number. For the logical function’s argument rules, consult ONLYOFFICE’s IF reference.

Rebuild check: =COMPLEX(IMREAL(E2),IMAGINARY(E2),"i") should represent 3+4i. If an abbreviated display differs (i vs 1i, for instance), compare the numeric coefficients using IMREAL and IMAGINARY rather than text equality.

Misconceptions, error/limit checks and troubleshooting

  • IMAGINARY is not the imaginary unit itself and is not a Boolean test. It returns the signed numeric coefficient b, while IMREAL returns a.
  • The function has exactly one documented required argument and no documented default. =IMAGINARY() is outside that syntax.
  • The current article describes x+yi and x+yj. Invalid or malformed text, unsanctioned suffix case, thousands separators embedded in text, and excess whitespace are not fully specified; don’t invent a particular error label.
  • A spreadsheet column formatted as text may store a literal rather than a calculated COMPLEX expression. Confirm E cells begin with = when generated from formulas.
  • An expected zero coefficient for a purely real value is a mathematical fact; precise native behaviour for an arbitrary non-complex numeric scalar passed directly has not been independently tested here. Use COMPLEX(8,0) for the controlled example.

To isolate a mismatch: (1) verify numeric B and C; (2) compute the simple =COMPLEX(3,4) control; (3) evaluate =IMAGINARY(COMPLEX(3,4)), expecting 4; (4) inspect D for lowercase suffix; (5) identify your Docs or Desktop build and formula language. No screenshot or error-code outcome is inferred.

ONLYOFFICE-specific setup and locale cautions

In the current ONLYOFFICE Spreadsheet Editor Help Center, these functions appear in the Engineering group. To locate them, use Formula → More functions → Engineering, or the Insert Function dialog and search for the exact English name. You can also type formulas directly, starting with =. This navigation and keyboard entry method are documented by the official Insert Functions guide (checked 2026-10-13).

All formulas here use the official English names and comma-delimited syntax. The ONLYOFFICE Advanced Settings reference explains that formula language and regional settings can vary. If your editor displays a translated function name or expects another list separator, use its formula assistant rather than blindly substituting punctuation. Decimal commas and argument separators are separate regional concerns. In example formulas, literal complex numbers and the suffix are text in double quotes; unquoted entries such as 3+4i are not equivalent to a quoted text literal.

Edition and version applicability

The current unversioned ONLYOFFICE Docs Help Center documents this function. That verifies present official documentation, not a first-supported version, successful execution in every deployed Docs server, or equivalent outcomes in all versions of Desktop Editors. The ONLYOFFICE Docs changelog and Desktop Editors changelog were consulted on 2026-10-13; neither was used to infer an undocumented first introduction release for this function. Native tests on identified Docs/web and Desktop versions are still required, especially for edge-case parsing, exact error text, and round-trip formatting. Excel, Google Sheets, other spreadsheet products and cmath are not evidence of ONLYOFFICE’s native behaviour.

Verification and limitations

Verification: Argument definitions and purposes come from the linked official references. Expected values were independently calculated. Native ONLYOFFICE Docs web or Desktop execution, historical-edition testing, localized syntax, exact errors and output formatting were not tested.

Official references checked on 2026-10-13 UTC