The YIELDMAT function in Google Sheets calculates the annual yield of a security that pays interest only at maturity. It returns the yield based on the price you paid, the face value, the issue date, the settlement date, the maturity date, and the annual coupon rate. To use it, you need the settlement date, maturity date, issue date, coupon rate, price per $100 face value, and the day-count basis. The formula is =YIELDMAT(settlement, maturity, issue, rate, price, [basis]). All dates must be valid Google Sheets date values, and the price must be per $100 of face value. This function is part of Google Sheets' financial functions and works the same way as in Excel.

What You'll Need

  • A Google account and access to Google Sheets.
  • The security's issue date, settlement date, and maturity date.
  • The annual coupon rate as a decimal or percentage (e.g., 5% or 0.05).
  • The price per $100 of face value (clean price, not including accrued interest).
  • The day-count basis (optional; defaults to 0 for US 30/360).

Step-by-Step

  1. Open your Google Sheet. Create a new sheet or open an existing one where you want to calculate the yield.
  2. Enter the required data in separate cells. For clarity, label them in one column and put the values in the next. For example:
    • A1: Settlement Date, B1: 2025-01-15 (or use a date function like DATE(2025,1,15))
    • A2: Maturity Date, B2: 2030-01-15
    • A3: Issue Date, B3: 2020-01-15
    • A4: Coupon Rate, B4: 0.05 (for 5%)
    • A5: Price, B5: 95.5 (per $100 face value)
    • A6: Basis, B6: 0 (optional)
  3. Select the cell where you want the result. Click on an empty cell, say B7.
  4. Type the YIELDMAT formula. Enter =YIELDMAT(B1, B2, B3, B4, B5, B6) and press Enter. If you omit the basis, use =YIELDMAT(B1, B2, B3, B4, B5).
  5. Check the result. The cell will display the yield as a decimal (e.g., 0.0578 for 5.78%). Format the cell as a percentage for readability: select the cell, go to Format > Number > Percent.
  6. Adjust inputs if needed. Change any of the input values and the yield updates automatically.

Common Mistakes

  • Using text instead of dates. If dates are entered as plain text (e.g., "Jan 15, 2025"), YIELDMAT returns a #VALUE! error. Use DATE() or ensure the cell is formatted as a date.
  • Entering the coupon rate as a whole number. A 5% coupon should be 0.05, not 5. If you enter 5, the result will be wildly off.
  • Forgetting that price is per $100 face value. If you have a price of $950 for a $1,000 bond, enter 95, not 950.
  • Mismatched date order. The settlement date must be before the maturity date, and the issue date must be on or before the settlement date. Otherwise, you get a #NUM! error.
  • Using an invalid basis. The basis must be 0, 1, 2, 3, or 4. Any other number returns #NUM!.
  • Including accrued interest in the price. YIELDMAT expects the clean price (without accrued interest). If you use the dirty price, the yield will be incorrect.

Tips

  • Use cell references instead of hard-coded values so you can change inputs easily.
  • Format the result as a percentage to make it readable.
  • If you need to calculate yield for a bond that pays periodic coupons, use YIELD instead of YIELDMAT.
  • Double-check the day-count basis: 0 = US (30/360), 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, 4 = European (30/360).
  • Remember that YIELDMAT assumes the security pays interest only at maturity; it is not for bonds with periodic coupon payments.

Troubleshooting

If you see a #VALUE! error, check that all date arguments are valid dates and that the rate and price are numbers. If you see #NUM!, verify that the settlement date is before the maturity date, the issue date is on or before the settlement date, the rate is non-negative, the price is positive, and the basis is between 0 and 4. If the result looks wrong, confirm that the price is per $100 face value and that the coupon rate is entered as a decimal. Also ensure you are not using a dirty price. If you still have issues, try re-entering the formula with the function wizard (Insert > Function) to see the expected argument types.

Frequently Asked Questions

What does YIELDMAT calculate?

YIELDMAT returns the annual yield of a security that pays interest only at maturity, based on the price, face value, and dates you provide.

Can I use YIELDMAT for a bond that pays regular coupons?

No. YIELDMAT is specifically for securities with a single interest payment at maturity. For periodic coupon bonds, use the YIELD function.

What is the basis argument?

The basis determines the day-count convention. 0 = US (30/360), 1 = Actual/actual, 2 = Actual/360, 3 = Actual/365, 4 = European (30/360). If omitted, it defaults to 0.

Why do I get a #NUM! error?

This usually means the dates are out of order (settlement after maturity, or issue after settlement), the price or rate is negative, or the basis is invalid.

Should the price include accrued interest?

No. YIELDMAT expects the clean price (without accrued interest). Using the dirty price will give an incorrect yield.

Does YIELDMAT work the same as in Excel?

Yes, the syntax and behavior are identical to Excel's YIELDMAT function.