Google Sheets YIELD Function: How to Use It
In this article
The YIELD function in Google Sheets returns the annual yield of a security that pays periodic interest, such as a bond. To use it, you need the settlement date, maturity date, annual coupon rate, price per $100 face value, redemption value per $100 face value, and the number of coupon payments per year. The syntax is =YIELD(settlement, maturity, rate, price, redemption, frequency, [day_count_convention]). Enter these values into cells or directly into the formula, and the function returns the yield as a decimal that you can format as a percentage. This guide walks you through the exact steps, common pitfalls, and troubleshooting so you can calculate bond yields confidently in Google Sheets.
What You'll Need
- A Google account and access to Google Sheets (desktop browser or mobile app).
- The bond's settlement date (the date you purchase the bond).
- The bond's maturity date (the date the bond expires).
- The annual coupon rate (the interest rate stated on the bond, as a decimal or percentage).
- The bond's price per $100 of face value (clean price, excluding accrued interest).
- The redemption value per $100 of face value (usually 100, but can differ for callable bonds).
- The number of coupon payments per year (1 for annual, 2 for semi-annual, 4 for quarterly).
- Optional: the day-count convention code (0 or omitted for US 30/360, 1 for actual/actual, 2 for actual/360, 3 for actual/365, 4 for European 30/360).
Step-by-Step
- Open Google Sheets and create a new spreadsheet or open an existing one. Click on an empty cell where you want the yield result to appear.
- Enter the required data in separate cells for clarity. For example, put the settlement date in cell A1, maturity date in A2, annual coupon rate in A3, price in A4, redemption value in A5, and frequency in A6. Use proper date formats (e.g., 1/15/2025) and enter rates as decimals (e.g., 0.05 for 5%).
- Type the YIELD formula in the result cell:
=YIELD(A1, A2, A3, A4, A5, A6). If you prefer to hardcode values, you can write=YIELD(DATE(2025,1,15), DATE(2030,1,15), 0.05, 95, 100, 2). Press Enter. - Check the result. The function returns a decimal number (e.g., 0.0634). To display it as a percentage, select the cell, click Format > Number > Percent, or use the toolbar's percent format button.
- Add the optional day-count convention if needed. For example,
=YIELD(A1, A2, A3, A4, A5, A6, 1)uses actual/actual. If omitted, Google Sheets defaults to US 30/360 (0). - Verify your inputs. Ensure dates are valid, rate and price are positive, frequency is 1, 2, or 4, and redemption is positive. The function will return an error if any input is invalid.
- Copy the formula down or across if you have multiple bonds. Use absolute references (e.g.,
$A$1) for fixed parameters if needed.
Common Mistakes
- Using the wrong date format: Google Sheets may interpret dates differently depending on locale. Use unambiguous formats like YYYY-MM-DD or the DATE function to avoid errors.
- Entering the coupon rate as a percentage instead of a decimal: For a 5% coupon, enter 0.05, not 5. If you enter 5, the yield will be wildly incorrect.
- Confusing price with redemption value: Price is what you pay (clean price), redemption is what you get at maturity (usually 100). Mixing them up skews the yield.
- Using the wrong frequency: Most US bonds pay semi-annually (frequency 2), but some pay annually (1) or quarterly (4). Check the bond's terms.
- Ignoring accrued interest: YIELD expects the clean price, not the dirty price (which includes accrued interest). If you use the dirty price, the result will be off.
- Forgetting to format as percentage: The raw decimal (e.g., 0.052) is correct but may look confusing; format it as a percentage for readability.
- Using settlement date after maturity date: The settlement date must be before the maturity date, or the function returns a #NUM! error.
Tips
- Use cell references instead of hardcoded values so you can easily update inputs and see the yield recalculate.
- Label your input cells clearly (e.g., "Settlement Date", "Coupon Rate") to avoid confusion.
- Test with a known example: a 10-year bond with 5% coupon, price 95, redemption 100, semi-annual payments should yield approximately 5.8% (depending on dates). Use this to sanity-check your formula.
- Remember that YIELD assumes the bond is held to maturity and all coupon payments are reinvested at the yield rate—it's a standard measure, not a guarantee of actual returns.
- For callable bonds, use the call date and call price as maturity and redemption, but note that yield-to-call is a different calculation.
- If you need to calculate yield for a bond with odd first or last periods, YIELD may not be appropriate; consider using more advanced functions or consult a financial professional.
Troubleshooting
If you see an error, check the following:
- #NUM! error: Likely due to invalid dates (settlement ≥ maturity), negative price or redemption, or frequency not 1, 2, or 4. Double-check all inputs.
- #VALUE! error: One or more arguments are non-numeric or improperly formatted. Ensure dates are valid dates and numbers are not text.
- #DIV/0! error: Rare, but could occur if price or redemption is zero. Ensure both are positive.
- Result seems wrong: Verify the coupon rate is a decimal, price is per $100 face value, and frequency matches the bond's payment schedule. Also check the day-count convention; using the wrong one can shift the yield slightly.
- Dates not recognized: If your dates are text, use DATEVALUE or reformat the cell as a date. In some locales, use semicolons instead of commas in formulas.
- Function not available: YIELD is a standard Google Sheets function; if it's not working, ensure you're using the correct syntax and that the sheet is not in a locale that uses different argument separators.
Frequently Asked Questions
What does the YIELD function do in Google Sheets?
It calculates the annual yield of a bond that pays periodic interest, based on the bond's price, coupon rate, maturity, and other parameters. The result is the yield to maturity expressed as a decimal.
What is the difference between YIELD and YIELDMAT?
YIELD is for bonds with periodic coupon payments, while YIELDMAT is for bonds that pay all interest at maturity (zero-coupon or discount bonds). Use YIELD for typical coupon bonds.
Can I use YIELD for a bond with annual payments?
Yes, set the frequency argument to 1. For semi-annual, use 2; for quarterly, use 4.
Why is my YIELD result different from my broker's?
Differences can arise from day-count conventions, accrued interest, or whether the price is clean or dirty. Ensure you're using the same conventions as your broker.
What day-count convention should I use?
For US bonds, 0 (30/360) is common. For government bonds in many countries, 1 (actual/actual) is typical. Check the bond's documentation or ask your broker.
Does YIELD account for taxes or fees?
No, YIELD calculates a pre-tax, pre-fee yield based on the inputs you provide. It does not include transaction costs or taxes.