SECH
Quirk foundCategory: Math and trigonometry · Last tested 2026-09-01
Real compatibility results for the SECH 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) | Quirk found |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| LibreOffice Calc | Yes | Yes (25.8.7.3, 2026-08-31) | Quirk found |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when SECH’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Quirk found | 2026-08-31 |
| 24.8.7.2 | Quirk found | 2026-08-31 |
| 25.2.0.3 | Quirk found | 2026-08-31 |
| 25.8.7.3 | Quirk found | 2026-08-31 |
Why isn't SECH working in LibreOffice?
SECH exists in LibreOffice 25.8.7.3, but it is not a drop-in match for
Excel — our executed tests found real behavioral differences (detailed in the test results on this
page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage
against the failing cases above before assuming your data is wrong.
Discovered quirks
-
=SECH(200000000) on
Excel for the web returned
0, but the documented/expected
result is #NUM!.
Provenance
The Remarks publish the same constraint SEC carries: "The absolute value of number must be less than 2^27" (= 134217728) and "If number is outside its constraints, SECH returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THE LIMIT: all four builds returned 0 rather than #NUM!. That is a silent wrong answer rather than a harmless permissiveness, and the limit exists precisely because of it -- at 2e8 radians the argument reduction consumes every bit of a double's precision, so the hyperbolic secant simply underflows to zero. Excel documents the guard; LibreOffice computes through it.; MISMATCH vs expected: expected '#NUM!', got 0
-
=SECH(200000000) on
LibreOffice Calc returned
0, but the documented/expected
result is #NUM!.
Provenance
The Remarks publish the same constraint SEC carries: "The absolute value of number must be less than 2^27" (= 134217728) and "If number is outside its constraints, SECH returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THE LIMIT: all four builds returned 0 rather than #NUM!. That is a silent wrong answer rather than a harmless permissiveness, and the limit exists precisely because of it -- at 2e8 radians the argument reduction consumes every bit of a double's precision, so the hyperbolic secant simply underflows to zero. Excel documents the guard; LibreOffice computes through it.; MISMATCH vs expected: expected '#NUM!', got 0
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 |
|---|---|---|---|---|
| =ROUND(SECH(45),25) | Microsoft's first documented example, which the page prints in scientific notation | 5.72504e-20 | 5.72504e-20ProvenanceMicrosoft publishes =SECH(45) = 5.73E-20. DERIVATION: 1/cosh(45 rad) = 5.72503716109878728894e-20 at 50 digits (mpmath), which is 5.73E-20 at the three significant figures the page prints. Asserted here at 25 decimal places -- ROUND(x,25) lands on 5.72504e-20 -- so the assertion carries THREE more significant digits than the page's 5.73E-20 while claiming nothing the derivation does not have. Same description/unit error as SEC: the page calls it "the hyperbolic secant of a 45 degree angle" while its own Remarks say to convert degrees with PI()/180, and 45 radians is what reproduces the published figure. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sech-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror. |
Matched |
| =ROUND(SECH(30),20) | Microsoft's second documented example | 1.8715246e-13 | 1.8715246e-13ProvenanceMicrosoft publishes =SECH(30) = 1.87E-13. Derived independently as 1/cosh(30 rad) = 1.871524593768034920983e-13, i.e. 1.87E-13 at the published three significant figures. Rounded here to 20 decimals, which lands on 1.8715246e-13 -- five more significant digits than the page prints -- for the same reason as the 45 case. |
Matched |
| =SECH(0) | A structural identity with no derived constant: sech(0) = 1 exactly | 1 | 1Provenancecosh(0) = 1 exactly, so sech(0) = 1 exactly. No rounding, no published figure, nothing to get wrong except the function itself -- a sharp check that the engine computes a hyperbolic secant rather than a circular one (cos(0) is also 1, so this case does NOT distinguish them; the 45 and 30 cases, whose circular and hyperbolic values differ by nineteen orders of magnitude, do). |
Matched |
| =ROUND(SECH(2)-SECH(-2),15) | sech is an even function, so a sign flip must change nothing | 0 | 0Provenancecosh is even, so sech is even and sech(2) - sech(-2) = 0 exactly. A structural assertion with no derived constant. NOTE ON READ-BACK: a formula returning 0 round-trips through .xlsx normally here (it is a genuine numeric zero, not a blank), unlike the empty-string case documented in RIGHTB.json. |
Matched |
| =SECH("abc") | A non-numeric argument, which the page assigns an error code | #VALUE! | #VALUE!ProvenanceThe Remarks publish: "If number is a nonnumeric value, SECH returns the #VALUE! error values." (Microsoft's plural, as published). |
Matched |
| =SECH(200000000) | An argument beyond the documented magnitude limit | 0 | #NUM!ProvenanceThe Remarks publish the same constraint SEC carries: "The absolute value of number must be less than 2^27" (= 134217728) and "If number is outside its constraints, SECH returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THE LIMIT: all four builds returned 0 rather than #NUM!. That is a silent wrong answer rather than a harmless permissiveness, and the limit exists precisely because of it -- at 2e8 radians the argument reduction consumes every bit of a double's precision, so the hyperbolic secant simply underflows to zero. Excel documents the guard; LibreOffice computes through it. |
Mismatch |
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 |
|---|---|---|---|---|
| =ROUND(SECH(45),25) | Microsoft's first documented example, which the page prints in scientific notation | 0 | 5.72504e-20ProvenanceMicrosoft publishes =SECH(45) = 5.73E-20. DERIVATION: 1/cosh(45 rad) = 5.72503716109878728894e-20 at 50 digits (mpmath), which is 5.73E-20 at the three significant figures the page prints. Asserted here at 25 decimal places -- ROUND(x,25) lands on 5.72504e-20 -- so the assertion carries THREE more significant digits than the page's 5.73E-20 while claiming nothing the derivation does not have. Same description/unit error as SEC: the page calls it "the hyperbolic secant of a 45 degree angle" while its own Remarks say to convert degrees with PI()/180, and 45 radians is what reproduces the published figure. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sech-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror. |
Matched |
| =ROUND(SECH(30),20) | Microsoft's second documented example | 0 | 1.8715246e-13ProvenanceMicrosoft publishes =SECH(30) = 1.87E-13. Derived independently as 1/cosh(30 rad) = 1.871524593768034920983e-13, i.e. 1.87E-13 at the published three significant figures. Rounded here to 20 decimals, which lands on 1.8715246e-13 -- five more significant digits than the page prints -- for the same reason as the 45 case. |
Matched |
| =SECH(0) | A structural identity with no derived constant: sech(0) = 1 exactly | 1 | 1Provenancecosh(0) = 1 exactly, so sech(0) = 1 exactly. No rounding, no published figure, nothing to get wrong except the function itself -- a sharp check that the engine computes a hyperbolic secant rather than a circular one (cos(0) is also 1, so this case does NOT distinguish them; the 45 and 30 cases, whose circular and hyperbolic values differ by nineteen orders of magnitude, do). |
Matched |
| =ROUND(SECH(2)-SECH(-2),15) | sech is an even function, so a sign flip must change nothing | 0 | 0Provenancecosh is even, so sech is even and sech(2) - sech(-2) = 0 exactly. A structural assertion with no derived constant. NOTE ON READ-BACK: a formula returning 0 round-trips through .xlsx normally here (it is a genuine numeric zero, not a blank), unlike the empty-string case documented in RIGHTB.json. |
Matched |
| =SECH("abc") | A non-numeric argument, which the page assigns an error code | #VALUE! | #VALUE!ProvenanceThe Remarks publish: "If number is a nonnumeric value, SECH returns the #VALUE! error values." (Microsoft's plural, as published). |
Matched |
| =SECH(200000000) | An argument beyond the documented magnitude limit | #NUM! | #NUM!ProvenanceThe Remarks publish the same constraint SEC carries: "The absolute value of number must be less than 2^27" (= 134217728) and "If number is outside its constraints, SECH returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THE LIMIT: all four builds returned 0 rather than #NUM!. That is a silent wrong answer rather than a harmless permissiveness, and the limit exists precisely because of it -- at 2e8 radians the argument reduction consumes every bit of a double's precision, so the hyperbolic secant simply underflows to zero. Excel documents the guard; LibreOffice computes through it. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =ROUND(SECH(45),25) | Microsoft's first documented example, which the page prints in scientific notation | 5.72504e-20 | 5.72504e-20ProvenanceMicrosoft publishes =SECH(45) = 5.73E-20. DERIVATION: 1/cosh(45 rad) = 5.72503716109878728894e-20 at 50 digits (mpmath), which is 5.73E-20 at the three significant figures the page prints. Asserted here at 25 decimal places -- ROUND(x,25) lands on 5.72504e-20 -- so the assertion carries THREE more significant digits than the page's 5.73E-20 while claiming nothing the derivation does not have. Same description/unit error as SEC: the page calls it "the hyperbolic secant of a 45 degree angle" while its own Remarks say to convert degrees with PI()/180, and 45 radians is what reproduces the published figure. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sech-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror. |
Matched |
| =ROUND(SECH(30),20) | Microsoft's second documented example | 1.8715246e-13 | 1.8715246e-13ProvenanceMicrosoft publishes =SECH(30) = 1.87E-13. Derived independently as 1/cosh(30 rad) = 1.871524593768034920983e-13, i.e. 1.87E-13 at the published three significant figures. Rounded here to 20 decimals, which lands on 1.8715246e-13 -- five more significant digits than the page prints -- for the same reason as the 45 case. |
Matched |
| =SECH(0) | A structural identity with no derived constant: sech(0) = 1 exactly | 1 | 1Provenancecosh(0) = 1 exactly, so sech(0) = 1 exactly. No rounding, no published figure, nothing to get wrong except the function itself -- a sharp check that the engine computes a hyperbolic secant rather than a circular one (cos(0) is also 1, so this case does NOT distinguish them; the 45 and 30 cases, whose circular and hyperbolic values differ by nineteen orders of magnitude, do). |
Matched |
| =ROUND(SECH(2)-SECH(-2),15) | sech is an even function, so a sign flip must change nothing | 0 | 0Provenancecosh is even, so sech is even and sech(2) - sech(-2) = 0 exactly. A structural assertion with no derived constant. NOTE ON READ-BACK: a formula returning 0 round-trips through .xlsx normally here (it is a genuine numeric zero, not a blank), unlike the empty-string case documented in RIGHTB.json. |
Matched |
| =SECH("abc") | A non-numeric argument, which the page assigns an error code | #VALUE! | #VALUE!ProvenanceThe Remarks publish: "If number is a nonnumeric value, SECH returns the #VALUE! error values." (Microsoft's plural, as published). |
Matched |
| =SECH(200000000) | An argument beyond the documented magnitude limit | 0 | #NUM!ProvenanceThe Remarks publish the same constraint SEC carries: "The absolute value of number must be less than 2^27" (= 134217728) and "If number is outside its constraints, SECH returns the #NUM! error value." LIBREOFFICE DOES NOT ENFORCE THE LIMIT: all four builds returned 0 rather than #NUM!. That is a silent wrong answer rather than a harmless permissiveness, and the limit exists precisely because of it -- at 2e8 radians the argument reduction consumes every bit of a double's precision, so the hyperbolic secant simply underflows to zero. Excel documents the guard; LibreOffice computes through it. |
Mismatch |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Where SECH behaves differently
- When the documentation is wrong: 29 vendor doc defects found by execution
Independent derivation across 586 executed functions found 29 places where a vendor's own page is contradicted by its own inputs, its own table, or the live engine: 23 Microsoft, 5 Google, 1 LibreOffice. Includes T.INV.2T's doubly-wrong Remark, DISC's stale figure, ISDATE's page against the live engine, and RAWSUBTRACT's help against LibreOffice's own result. - Your function exists but your file cannot say so: _xlfn storage tokens
Executed: eight IM* functions LibreOffice implements return #NAME? on all four builds because it cannot read Excel's _xlfn. token for them, while COT and CSC only work under that same prefix. Eleven LibreOffice aliases are erased by its own exporter, and a token change between 24.2 and 24.8 makes a 24.8-written file open as #NAME? in 24.2.