IMABS
Supported, behaves as documentedCategory: Engineering · Last tested 2026-09-01
Real compatibility results for the IMABS function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | Yes | No — documented only | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Supported, behaves as documented |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-31) | Supported, behaves as documented |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when IMABS’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Supported, behaves as documented | 2026-08-31 |
| 24.8.7.2 | Supported, behaves as documented | 2026-08-31 |
| 25.2.0.3 | Supported, behaves as documented | 2026-08-31 |
| 25.8.7.3 | Supported, behaves as documented | 2026-08-31 |
Executed test cases
Excel for the web (executed 2026-09-01 via OneDrive recalculation)
These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =IMABS("5+12i") | Microsoft's documented worked example: the modulus of 5+12i | 13 | 13ProvenanceMicrosoft publishes '=IMABS("5+12i")' with the result 13. Derived independently from the definition the page states, |z| = sqrt(x^2 + y^2): sqrt(25 + 144) = sqrt(169) = 13 exactly. A Pythagorean triple was chosen by Microsoft precisely so the answer is an exact integer, so this is asserted with no ROUND wrapper -- any floating-point drift shows up immediately. |
Matched |
| =IMABS("3+4i") | A second exact-integer modulus, from the 3-4-5 triple | 5 | 5ProvenanceNot published on the IMABS page, but 3+4i is the complex number Microsoft's own IMAGINARY, IMARGUMENT, IMCONJUGATE and IMLN pages all use, so this ties the whole family to one number. sqrt(9 + 16) = sqrt(25) = 5 exactly. |
Matched |
| =IMABS("-3-4i") | Both components negative: a modulus is always non-negative | 5 | 5ProvenanceDerived from |z| = sqrt(x^2 + y^2), which squares away both signs: sqrt(9 + 16) = 5. Included because an implementation that parses the string by splitting on the sign characters, rather than by reading a signed real and a signed imaginary part, mis-handles a leading minus. |
Matched |
| =IMABS("5+12j") | The same number written with the documented j suffix instead of i | 13 | 13ProvenanceMicrosoft documents every IM* function as accepting "a complex number in x + yi or x + yj text format", so the j suffix is not an alternative spelling this corpus invented -- it is half of the documented input grammar, and an engine that parses only the i form is incompatible on documented input. Same derivation as the doc example: sqrt(25 + 144) = 13. |
Matched |
| =IMABS("i") | The bare imaginary unit, written with no coefficient and no real part | 1 | 1Provenance|i| = 1. This is the parsing edge case of the whole family: "i" carries neither a real part nor an explicit coefficient, and it is exactly the form Excel itself PRINTS for a result whose real part is 0 and whose imaginary coefficient is 1, so an engine that cannot read it back cannot round-trip its own output. |
Matched |
| =IMABS(4) | A plain real number, which is a complex number with zero imaginary part | 4 | 4ProvenanceMicrosoft's IMAGINARY page establishes that a bare number is a valid inumber by publishing '=IMAGINARY(4)' with the result 0. A real 4 therefore has modulus sqrt(16 + 0) = 4. |
Matched |
Google Sheets (executed 2026-08-31 via Drive import)
Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =IMABS("5+12i") | Microsoft's documented worked example: the modulus of 5+12i | 13 | 13ProvenanceMicrosoft publishes '=IMABS("5+12i")' with the result 13. Derived independently from the definition the page states, |z| = sqrt(x^2 + y^2): sqrt(25 + 144) = sqrt(169) = 13 exactly. A Pythagorean triple was chosen by Microsoft precisely so the answer is an exact integer, so this is asserted with no ROUND wrapper -- any floating-point drift shows up immediately. |
Matched |
| =IMABS("3+4i") | A second exact-integer modulus, from the 3-4-5 triple | 5 | 5ProvenanceNot published on the IMABS page, but 3+4i is the complex number Microsoft's own IMAGINARY, IMARGUMENT, IMCONJUGATE and IMLN pages all use, so this ties the whole family to one number. sqrt(9 + 16) = sqrt(25) = 5 exactly. |
Matched |
| =IMABS("-3-4i") | Both components negative: a modulus is always non-negative | 5 | 5ProvenanceDerived from |z| = sqrt(x^2 + y^2), which squares away both signs: sqrt(9 + 16) = 5. Included because an implementation that parses the string by splitting on the sign characters, rather than by reading a signed real and a signed imaginary part, mis-handles a leading minus. |
Matched |
| =IMABS("5+12j") | The same number written with the documented j suffix instead of i | 13 | 13ProvenanceMicrosoft documents every IM* function as accepting "a complex number in x + yi or x + yj text format", so the j suffix is not an alternative spelling this corpus invented -- it is half of the documented input grammar, and an engine that parses only the i form is incompatible on documented input. Same derivation as the doc example: sqrt(25 + 144) = 13. |
Matched |
| =IMABS("i") | The bare imaginary unit, written with no coefficient and no real part | 1 | 1Provenance|i| = 1. This is the parsing edge case of the whole family: "i" carries neither a real part nor an explicit coefficient, and it is exactly the form Excel itself PRINTS for a result whose real part is 0 and whose imaginary coefficient is 1, so an engine that cannot read it back cannot round-trip its own output. |
Matched |
| =IMABS(4) | A plain real number, which is a complex number with zero imaginary part | 4 | 4ProvenanceMicrosoft's IMAGINARY page establishes that a bare number is a valid inumber by publishing '=IMAGINARY(4)' with the result 0. A real 4 therefore has modulus sqrt(16 + 0) = 4. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =IMABS("5+12i") | Microsoft's documented worked example: the modulus of 5+12i | 13 | 13ProvenanceMicrosoft publishes '=IMABS("5+12i")' with the result 13. Derived independently from the definition the page states, |z| = sqrt(x^2 + y^2): sqrt(25 + 144) = sqrt(169) = 13 exactly. A Pythagorean triple was chosen by Microsoft precisely so the answer is an exact integer, so this is asserted with no ROUND wrapper -- any floating-point drift shows up immediately. |
Matched |
| =IMABS("3+4i") | A second exact-integer modulus, from the 3-4-5 triple | 5 | 5ProvenanceNot published on the IMABS page, but 3+4i is the complex number Microsoft's own IMAGINARY, IMARGUMENT, IMCONJUGATE and IMLN pages all use, so this ties the whole family to one number. sqrt(9 + 16) = sqrt(25) = 5 exactly. |
Matched |
| =IMABS("-3-4i") | Both components negative: a modulus is always non-negative | 5 | 5ProvenanceDerived from |z| = sqrt(x^2 + y^2), which squares away both signs: sqrt(9 + 16) = 5. Included because an implementation that parses the string by splitting on the sign characters, rather than by reading a signed real and a signed imaginary part, mis-handles a leading minus. |
Matched |
| =IMABS("5+12j") | The same number written with the documented j suffix instead of i | 13 | 13ProvenanceMicrosoft documents every IM* function as accepting "a complex number in x + yi or x + yj text format", so the j suffix is not an alternative spelling this corpus invented -- it is half of the documented input grammar, and an engine that parses only the i form is incompatible on documented input. Same derivation as the doc example: sqrt(25 + 144) = 13. |
Matched |
| =IMABS("i") | The bare imaginary unit, written with no coefficient and no real part | 1 | 1Provenance|i| = 1. This is the parsing edge case of the whole family: "i" carries neither a real part nor an explicit coefficient, and it is exactly the form Excel itself PRINTS for a result whose real part is 0 and whose imaginary coefficient is 1, so an engine that cannot read it back cannot round-trip its own output. |
Matched |
| =IMABS(4) | A plain real number, which is a complex number with zero imaginary part | 4 | 4ProvenanceMicrosoft's IMAGINARY page establishes that a bare number is a valid inumber by publishing '=IMAGINARY(4)' with the result 0. A real 4 therefore has modulus sqrt(16 + 0) = 4. |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation