Contact

COUPPCD Function (Calligra Sheets)

Financial Intermediate Calligra Sheets

Find the previous or current coupon date in Calligra Sheets, with explicit maturity anchors, coupon-date equality and end-of-month examples.

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

Quick answer: =COUPPCD(DATE(2025;3;15);DATE(2026;12;31);2;1) is expected to return December 31, 2024.

COUPPCD returns the coupon date on or before settlement under the inferred regular schedule. On a coupon date it returns settlement itself, not the strictly earlier coupon.

Availability and evidence

  • Introduced: Original introduction release not established. Presence in the checked release is not an introduction date.
  • Available in source: Calligra Sheets 26.08.2, checked against first-party pinned source retrieved on October 18, 2026.
  • Retired versus deprecated: Neither retirement nor deprecation is established; the function remains registered in this release.
  • Verification: Selected formulas were executed in the Calligra Sheets 25.04.2 GUI on October 18, 2026. The native-results section lists those observations separately from independent calendar calculations and source analysis. 26.08.2 was source-checked only.
  • Entry style: English names and semicolon separators. DATE constructors avoid locale-ambiguous date strings. Brackets in displayed syntax mark optional arguments and are not typed.

The inspected financial.xml has no dedicated COUPPCD description. Its availability and argument count are established by the runtime registration, not by an invented handbook section.

Syntax and argument roles

=COUPPCD(settlement; maturity; frequency[; basis])
Argument Requirement
settlement Required valid date before maturity
maturity Required later date that anchors the regular coupon schedule
frequency Required positive payment frequency; use 1 (annual), 2 (semiannual) or 4 (quarterly) for these examples
basis Optional integer day-count selector, default 0

The source accepts nonzero integer divisors of 12, more than the ordinary 1/2/4 conventions. This guide does not promote extra frequencies as financially validated. Supply whole positive inputs deliberately; the source does not safely establish every negative or fractional case.

Build the previous-date example

Use a fresh worksheet. Enter A1 “Settlement”, A2 “Maturity”, A3 “Frequency” and A4 “Basis”. Put =DATE(2025;3;15) in B1, =DATE(2026;12;31) in B2, 2 in B3 and 1 in B4. Keep formula outputs below the input block.

The regular semiannual schedule anchored to this end-of-month maturity has December 31 and June 30 coupon dates. Around settlement, the relevant dates are December 31, 2024 and June 30, 2025. Calendar subtraction gives 74 elapsed days and 107 remaining days, a total of 181 actual days in that period.

  1. In B6 enter =COUPPCD(B1;B2;B3;B4).
  2. Format B6 as yyyy-MM-dd and expect 2024-12-31.
  3. List the nearby semiannual dates: December 31, 2024; June 30, 2025; December 31, 2025. The March 15 settlement sits after the first and before the second.
  4. Independently check that the elapsed gap from December 31 to March 15 is 74 actual days. This confirms the calendar interpretation; it is not a native function test.

The return is date-valued and uses the workbook’s calculation settings. Do not label a raw displayed serial number as “days since coupon”. Apply date formatting and compare the actual calendar date. The serial representation itself depends on the workbook’s date system and is not pinned by this guide.

Understand the boundary with three settlements

Keep maturity December 31, 2026, frequency 2 and basis 1:

Settlement Expected previous/current coupon date
June 29, 2025 December 31, 2024
June 30, 2025 June 30, 2025
July 1, 2025 June 30, 2025

The jump occurs on June 30. This is useful for identifying which accrual period contains a date. It also explains why COUPDAYBS is zero on that boundary: elapsed time is measured from the newly selected current coupon.

The source’s date helper walks backward from maturity until the candidate is no later than settlement. It does not apply business-day adjustments, holiday calendars or payment-entitlement rules. A coupon dated on a weekend remains that schedule anchor in this calculation.

Advanced case: a period-start label for an accrual report

Suppose a report has settlements March 15, June 29, June 30 and July 1, 2025. A separate COUPPCD result alongside each row gives the period-start labels December 31, December 31, June 30 and June 30. You can group rows by those date values after checking that all rows use the same maturity anchor and frequency.

Do not group solely by the formatted month name: December 2024 and December 2025 would become indistinguishable. Retain complete date values and display the year. If one instrument has quarterly payments and another semiannual, their apparent previous dates may coincide while their next boundaries differ; keep frequency with the grouping key.

For an end-of-month illustration, =COUPPCD(DATE(2025;8;28);DATE(2026;2;28);2;0) is source-predicted to return February 28, 2025. The intervening August coupon is promoted to August 31 because maturity is at month end, so it has not yet occurred on August 28. Moving settlement to August 31 makes the expected previous/current coupon date August 31, 2025.

Basis and interface limits

Basis defaults to 0 and the source accepts 0–5. It is checked for validity but does not alter the date generated by this function. Bases 0, 1 and 3 therefore have the same expected date for the ordinary examples. This does not imply that day-count functions using those bases return the same numeric values.

The end-of-month mode is fixed on in this function’s shared settings. COUPPCD accepts three or four arguments, not COUPNUM’s extra fifth flag. Do not add a FALSE argument hoping to turn the month-end rule off. Original introduction, packaged-runtime availability and import behavior remain separate from this released-source evidence.

Errors, boundaries and compatibility

  • The source explicitly returns #VALUE! when settlement is on or after maturity, basis is outside 0–5, frequency is zero or frequency does not divide 12. These are source-predicted errors; their native cell display is not claimed here.
  • Use positive frequencies. Some negative divisors pass the explicit validation, and the coupon-date iteration is not safe to assume terminating for those inputs. Do not use negative-frequency trial formulas in a production workbook.
  • Validate date inputs before calling the function. Invalid text dates, blanks, imported errors and fractional-selector coercion are outside the verified examples.
  • The schedule is inferred backward from maturity at fixed month intervals. There is no issue date, first-coupon date, holiday calendar, business-day adjustment or irregular-stub argument. A computed date or count is not proof of the actual instrument’s payment schedule.
  • End-of-month handling matters: when maturity is the last day of its month and end-of-month mode is enabled, generated coupon dates are moved to the last day of their respective months. Leap years and unequal month lengths therefore deserve explicit tests.
  • Formula-name compatibility is not import/export verification. No workbook round trip or comparison with another spreadsheet engine has been performed.
  • DATE constructs unambiguous date inputs.
  • YEARFRAC is a separate year-fraction calculation, not a substitute for the coupon schedule.
  • DAYS can support a date-difference cross-check when its argument order is observed.

The registered alternate name COM.SUN.STAR.SHEET.ADDIN.ANALYSIS.GETCOUPPCD invokes COUPPCD. It is the same function under another name; it does not select a different day-count method.

Selected native results and screenshot

These formulas were recalculated in Calligra Sheets 25.04.2 using a prepared ODS workbook, then saved by the application. The table records the native-saved results. Date-returning cells use ISO date formatting. Other examples in this guide remain independently calculated expectations or source analysis unless listed here.

Entered formula Native result
=COUPPCD(DATE(2025;3;15);DATE(2026;12;31);2;0) 2024-12-31
=COUPPCD(DATE(2025;3;15);DATE(2026;12;31);2;1) 2024-12-31
=COUPPCD(DATE(2025;3;15);DATE(2026;12;31);2;3) 2024-12-31
=COUPPCD(DATE(2025;6;30);DATE(2026;12;31);2;1) 2025-06-30

Calligra Sheets 25.04.2 showing COUPPCD in selected cell B2, result 2024-12-31 and the complete formula in the formula bar

Screenshot: Native Calligra Sheets 25.04.2. Selected cell B2 evaluates =COUPPCD(DATE(2025;3;15);DATE(2026;12;31);2;0) and shows 2024-12-31. Column B contains application results; column C shows the corresponding formula text. The output cells are formatted as calendar dates, not numeric day counts.

These selected observations establish 25.04.2 behavior for the listed formulas. They do not establish execution in 26.08.2, another locale or another spreadsheet product, nor do they validate an actual instrument’s contractual schedule.