COUPPCD in Google Sheets: Last Coupon Date

How-to basics · Updated November 23, 2026

The COUPPCD function in Google Sheets returns the last coupon (interest payment) date that falls on or before the settlement date for a security that pays periodic interest. Its syntax is COUPPCD(settlement, maturity, frequency, [day_count_convention]), and it is a standard financial function used in bond analysis.

What Is COUPPCD and Why Does It Matter?

When you buy or sell a bond between coupon payment dates, the buyer typically owes the seller the accrued interest earned up to the settlement date. To calculate that accrued interest correctly, you need to know the exact date of the last coupon payment before settlement. COUPPCD gives you that date directly, saving you from manually counting months or dealing with varying day counts.

For example, if a bond pays semiannual coupons on January 15 and July 15, and you settle on March 1, 2025, COUPPCD returns January 15, 2025. This date is then used in formulas like ACCRINT or YIELD to compute interest accruals and yields.

Syntax and Arguments Explained

The function takes four arguments, with the last one optional:

  • settlement – The date the security is traded or delivered to the buyer. Must be a valid date reference or a date serial number.
  • maturity – The date the security expires and the principal is repaid.
  • frequency – The number of coupon payments per year. Accepts 1 (annual), 2 (semiannual), or 4 (quarterly).
  • day_count_convention – Optional. Determines how days are counted. Common values: 0 (US 30/360), 1 (actual/actual), 2 (actual/360), 3 (actual/365), 4 (European 30/360). If omitted, Google Sheets defaults to 0.

All dates should be entered as date values (e.g., DATE(2025,1,15)) or references to cells containing dates. Text dates may be interpreted inconsistently, so it’s safer to use date functions.

How to Use COUPPCD in a Real Spreadsheet

Suppose you have a bond with settlement in cell A2 (e.g., 3/1/2025), maturity in B2 (e.g., 1/15/2030), and semiannual payments (frequency = 2). To get the last coupon date before settlement, enter:

=COUPPCD(A2, B2, 2)

If your settlement is 3/1/2025 and maturity is 1/15/2030, the result is 1/15/2025 (assuming the default US 30/360 convention). If you want to specify the actual/actual convention, use:

=COUPPCD(A2, B2, 2, 1)

The result will still be 1/15/2025 because the coupon schedule is fixed, but the day count affects other calculations like accrued interest.

Choosing the Right Day Count Convention

The day count convention matters when you use COUPPCD in further calculations, even though the returned date itself is independent of the convention (the coupon dates are fixed by the schedule). However, the convention affects how interest is calculated between those dates. Here’s a quick guide:

  • 0 (US 30/360) – Common for corporate bonds; assumes 30-day months and 360-day years.
  • 1 (Actual/Actual) – Used for US Treasury bonds; counts actual days in the period and actual days in the year.
  • 2 (Actual/360) – Used in money markets; counts actual days but assumes a 360-day year.
  • 3 (Actual/365) – Similar to actual/360 but uses 365 days.
  • 4 (European 30/360) – Similar to US 30/360 but adjusts end-of-month dates differently.

If you’re unsure which convention your bond uses, check the bond’s prospectus or consult a financial professional. For most spreadsheet exercises, the default (0) is fine.

Common Errors and How to Fix Them

You might encounter a few error values when using COUPPCD:

  • #VALUE! – Occurs if any argument is non-numeric or if dates are invalid. Ensure settlement and maturity are real dates, and frequency is 1, 2, or 4.
  • #NUM! – Happens when settlement is after maturity, or when frequency is not one of the allowed values. Also occurs if day_count_convention is outside 0–4.
  • #NAME? – Usually means you mistyped the function name or are using a non-English locale where the function might have a different name (in Excel it’s also COUPPCD).

If you get an unexpected date, double-check that your settlement date is actually after the last coupon date. For instance, if settlement equals the coupon date itself, COUPPCD returns that date (since it’s on or before settlement).

COUPPCD vs. Other Coupon Functions

Google Sheets has several related functions that work with coupon schedules:

  • COUPNUM – Returns the total number of coupon payments between settlement and maturity.
  • COUPDAYBS – Returns the number of days from the beginning of the coupon period to settlement.
  • COUPDAYS – Returns the number of days in the coupon period that contains settlement.
  • COUPDAYSNC – Returns the number of days from settlement to the next coupon date.
  • COUPNCD – Returns the next coupon date after settlement (the opposite of COUPPCD).

For example, to get the next coupon date, use =COUPNCD(A2, B2, 2). COUPPCD and COUPNCD are often used together to define the coupon period boundaries for accrued interest calculations.

Practical Example: Accrued Interest Calculation

Let’s put COUPPCD to work. Assume a $1,000 face value bond with a 5% annual coupon, paid semiannually. Settlement is 3/1/2025, maturity is 1/15/2030. The last coupon date (from COUPPCD) is 1/15/2025. The next coupon date (COUPNCD) is 7/15/2025.

To calculate accrued interest from the last coupon to settlement, you need the number of days in the period and the number of days from last coupon to settlement. With the US 30/360 convention, days from 1/15/2025 to 3/1/2025 is 46 days (16 days in January after the 15th, plus 30 for February). The coupon period length (from 1/15/2025 to 7/15/2025) is 180 days (30/360). Accrued interest = (46/180) * (5% * 1000 / 2) = 0.2556 * 25 = $6.39.

In Google Sheets, you could compute this with formulas referencing COUPPCD and COUPNCD, but the function itself just gives you the date – the rest is up to you.

Frequently Asked Questions

Does COUPPCD work in Excel the same way?
Yes, Excel has an identical COUPPCD function with the same syntax and arguments. The only difference is that Excel might require the Analysis ToolPak add-in in older versions, but in modern Excel (2010 and later) it’s built-in. Google Sheets has it natively.

What if my settlement date is exactly on a coupon date?
COUPPCD returns that same coupon date, because the condition is “on or before” settlement. For example, if settlement is 1/15/2025 and coupons are on 1/15 and 7/15, COUPPCD returns 1/15/2025.

Can I use COUPPCD with quarterly payments?
Yes, set frequency to 4. The function will return the last quarterly coupon date before settlement. For monthly payments, frequency is not allowed (only 1, 2, or 4), so you’d need to use a different approach.

Why does my COUPPCD return a serial number instead of a date?
Google Sheets stores dates as serial numbers. If the cell is formatted as a number, you’ll see a large integer. To display it as a date, go to Format > Number > Date.

Is COUPPCD affected by holidays or weekends?
No, COUPPCD ignores holidays and weekends. It simply calculates based on the coupon schedule and day count convention. If a coupon date falls on a weekend, the actual payment might be moved to the next business day, but COUPPCD still returns the scheduled date.

Can I use COUPPCD to find the last interest payment date for a bond that has already matured?
No, settlement must be before maturity. If settlement is after maturity, the function returns a #NUM! error. For matured bonds, you’d need to manually determine the last coupon date from the schedule.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.