← All functions

COUPDAYSNC

Quirk found

Category: Financial · Last tested 2026-09-01

Real compatibility results for the COUPDAYSNC 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

EngineDocumentedLive-testedVerdict
Excel (desktop)Yes No — documented only n/a
Excel for the web— Yes (recalc, 2026-09-01) Supported, behaves as documented
Google SheetsYes Yes (Drive import, 2026-08-31) Supported, behaves as documented
LibreOffice CalcYes 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 COUPDAYSNC’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
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 COUPDAYSNC working in LibreOffice?

COUPDAYSNC 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

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.

FormulaDescriptionResultExpectedVerdict
=COUPDAYSNC(A2,A3,A4,A5) Microsoft's documented worked example: days from settlement to the next coupon date, semiannual, actual/actual 110 110
Provenance

Microsoft's page publishes this example's result as 110. Setup serials are the dates Microsoft's page prints: 40568 = 2011-01-25 (settlement), 40862 = 2011-11-15 (maturity), frequency 2 (semiannual), basis 1 (actual/actual). Counting coupon dates back from maturity in six-month steps gives 2011-11-15, 2011-05-15, 2010-11-15, so the settlement date falls in the coupon period 2010-11-15 to 2011-05-15. On basis 1 the count is the actual number of days from 2011-01-25 to the next coupon date 2011-05-15, which Python date subtraction gives as 110. Consistency cross-check: 71 days before settlement + 110 days after = the 181-day period length COUPDAYS reports for the same bond

Matched
=COUPDAYSNC(A2,A3,1,A5) The same bond paying annually instead of semiannually 294 294
Provenance

With frequency 1 the coupon dates are 2011-11-15 and 2010-11-15, so the next coupon after the 2011-01-25 settlement is 2011-11-15 rather than 2011-05-15. The actual day count from 2011-01-25 to 2011-11-15 is 294 (Python date subtraction), which discriminates the frequency argument

Matched
=COUPDAYSNC(A2,A3,3,A5) A frequency of 3, which is not one of the permitted values #NUM! #NUM!
Provenance

Excel documents: "If frequency is any number other than 1, 2, or 4, COUPDAYSNC returns the #NUM! error value."

Matched
=COUPDAYSNC(A2,A3,A4,5) A day-count basis of 5, above the documented maximum of 4 #NUM! #NUM!
Provenance

Excel documents: "If basis < 0 or if basis > 4, COUPDAYSNC returns the #NUM! error value."

Matched
=COUPDAYSNC(A3,A2,A4,A5) Settlement and maturity swapped, so settlement is after maturity #NUM! #NUM!
Provenance

Excel documents: "If settlement >= maturity, COUPDAYSNC returns the #NUM! error value."

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.

FormulaDescriptionResultExpectedVerdict
=COUPDAYSNC(A2,A3,A4,A5) Microsoft's documented worked example: days from settlement to the next coupon date, semiannual, actual/actual 110 110
Provenance

Microsoft's page publishes this example's result as 110. Setup serials are the dates Microsoft's page prints: 40568 = 2011-01-25 (settlement), 40862 = 2011-11-15 (maturity), frequency 2 (semiannual), basis 1 (actual/actual). Counting coupon dates back from maturity in six-month steps gives 2011-11-15, 2011-05-15, 2010-11-15, so the settlement date falls in the coupon period 2010-11-15 to 2011-05-15. On basis 1 the count is the actual number of days from 2011-01-25 to the next coupon date 2011-05-15, which Python date subtraction gives as 110. Consistency cross-check: 71 days before settlement + 110 days after = the 181-day period length COUPDAYS reports for the same bond

Matched
=COUPDAYSNC(A2,A3,1,A5) The same bond paying annually instead of semiannually 294 294
Provenance

With frequency 1 the coupon dates are 2011-11-15 and 2010-11-15, so the next coupon after the 2011-01-25 settlement is 2011-11-15 rather than 2011-05-15. The actual day count from 2011-01-25 to 2011-11-15 is 294 (Python date subtraction), which discriminates the frequency argument

Matched
=COUPDAYSNC(A2,A3,3,A5) A frequency of 3, which is not one of the permitted values #NUM! #NUM!
Provenance

Excel documents: "If frequency is any number other than 1, 2, or 4, COUPDAYSNC returns the #NUM! error value."

Matched
=COUPDAYSNC(A2,A3,A4,5) A day-count basis of 5, above the documented maximum of 4 #NUM! #NUM!
Provenance

Excel documents: "If basis < 0 or if basis > 4, COUPDAYSNC returns the #NUM! error value."

Matched
=COUPDAYSNC(A3,A2,A4,A5) Settlement and maturity swapped, so settlement is after maturity #NUM! #NUM!
Provenance

Excel documents: "If settlement >= maturity, COUPDAYSNC returns the #NUM! error value."

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=COUPDAYSNC(A2,A3,A4,A5) Microsoft's documented worked example: days from settlement to the next coupon date, semiannual, actual/actual 110 110
Provenance

Microsoft's page publishes this example's result as 110. Setup serials are the dates Microsoft's page prints: 40568 = 2011-01-25 (settlement), 40862 = 2011-11-15 (maturity), frequency 2 (semiannual), basis 1 (actual/actual). Counting coupon dates back from maturity in six-month steps gives 2011-11-15, 2011-05-15, 2010-11-15, so the settlement date falls in the coupon period 2010-11-15 to 2011-05-15. On basis 1 the count is the actual number of days from 2011-01-25 to the next coupon date 2011-05-15, which Python date subtraction gives as 110. Consistency cross-check: 71 days before settlement + 110 days after = the 181-day period length COUPDAYS reports for the same bond

Matched
=COUPDAYSNC(A2,A3,1,A5) The same bond paying annually instead of semiannually 294 294
Provenance

With frequency 1 the coupon dates are 2011-11-15 and 2010-11-15, so the next coupon after the 2011-01-25 settlement is 2011-11-15 rather than 2011-05-15. The actual day count from 2011-01-25 to 2011-11-15 is 294 (Python date subtraction), which discriminates the frequency argument

Matched
=COUPDAYSNC(A2,A3,3,A5) A frequency of 3, which is not one of the permitted values #VALUE! #NUM!
Provenance

Excel documents: "If frequency is any number other than 1, 2, or 4, COUPDAYSNC returns the #NUM! error value."

Mismatch
=COUPDAYSNC(A2,A3,A4,5) A day-count basis of 5, above the documented maximum of 4 #VALUE! #NUM!
Provenance

Excel documents: "If basis < 0 or if basis > 4, COUPDAYSNC returns the #NUM! error value."

Mismatch
=COUPDAYSNC(A3,A2,A4,A5) Settlement and maturity swapped, so settlement is after maturity #VALUE! #NUM!
Provenance

Excel documents: "If settlement >= maturity, COUPDAYSNC returns the #NUM! error value."

Mismatch

Docs & syntax