How to Yielddisc Function in Excel

Learn multiple Excel methods to yielddisc function with step-by-step examples and practical applications.

excelformulaspreadsheettutorial
12 min read • Last updated: 7/2/2025

How to Yielddisc Function in Excel

Why This Task Matters in Excel

When you buy or sell short-term treasury bills, commercial paper, or any other security issued at a discount instead of a stated coupon, you need a quick, defensible way to calculate its annualized yield. Portfolio managers must compare the attractiveness of a discounted bill against coupon-paying bonds, money-market funds, or bank deposits. Corporate treasurers frequently use discounted commercial paper to invest surplus cash for periods ranging from 30 to 360 days and must report the implied annual return to management. Auditors and regulators want to see consistent yield calculations across all portfolios, and failure to calculate yields properly can lead to misstated performance, mispricing of trades, or even regulatory fines.

Excel’s YIELDDISC function provides a purpose-built, fully documented method for converting the purchase price of a discounted security into an annual yield. Unlike ad-hoc rate formulas or manual factor tables, YIELDDISC automatically handles differing day-count conventions, includes the redemption value in its math, and produces identical results to industry-standard pricing systems. Because the function encapsulates the required yield formula, analysts avoid mistakes stemming from forgotten compounding assumptions or incorrectly rounded fractions of a year.

Mastering this task also strengthens skills that connect with many other fixed-income workflows. Investors who already calculate accrued interest with ACCRINT or price bonds with PRICE will find YIELDDISC a natural extension for money-market instruments. Knowledge of settlement and maturity date handling dovetails with date arithmetic, EOMONTH, and WORKDAY. Professionals who understand YIELDDISC can easily move on to the more general YIELD function for coupon bonds, or to XIRR when dealing with irregular cash flows. In short, confidently using YIELDDISC means you can evaluate an entire treasury bill book in minutes, compare it against floating-rate notes, and explain your methodology to any stakeholder.

Without this skill, decision-makers may rely on back-of-the-envelope approximations, expose themselves to basis risk when two departments produce different yields, or waste hours reconciling inconsistent results. Excel offers a fast, audit-friendly solution—provided you know exactly how to structure the inputs and interpret the output.

Best Excel Approach

For discounted securities, the single most effective method is to use the built-in YIELDDISC function. It was designed specifically for this instrument type, is compatible with every desktop edition from Excel 2007 onward, integrates with Data Tables for scenario analysis, and obeys all major money-market day-count bases. Alternative rate calculations such as simple discount rates, bank-discount yields, or XIRR can produce comparable numbers, but they require additional math or assumptions. YIELDDISC offers the shortest, most transparent path from observable market data (price, dates, redemption value) to the annual yield you must report.

Before using the function, confirm the following prerequisites:

  1. Settlement date is the actual purchase date—the day after the trade date in most markets.
  2. Maturity date is the bill’s redemption date. It must be later than settlement.
  3. Price is quoted per 100 currency units (for example, 98.25 indicates 98.25 currency units paid for 100 redeemed at maturity).
  4. Redemption (also per 100) is typically 100 but can vary for special-purpose instruments.
  5. Basis selects the correct day-count convention (0 to 4, default 0).

Syntax:

=YIELDDISC(settlement, maturity, pr, redemption, [basis])

Parameter names use Excel’s shorthand: pr is the security’s price. The function outputs an annual yield as a percentage (for instance, 0.045 means 4.5 percent). You normally format the result with Percentage style and two decimals.

Alternative approaches—shown below—are relevant when YIELDDISC is unavailable (older Excel versions, certain web tools) or when you must match a specific quoting convention:

= (redemption / pr - 1) * (basis_days_in_year / days_to_maturity)     'Equivalent simple yield

or for irregular cash flows:

=XIRR(cashflows, dates)

Although these formulas work, they require manual day-count adjustments and therefore introduce room for error. Use them only when YIELDDISC cannot meet the requirement.

Parameters and Inputs

YIELDDISC has five parameters—four required, one optional:

  1. settlement (required)

    • Type: valid Excel date serial number or date literal.
    • Must be a date on or after the issue date.
  2. maturity (required)

    • Type: valid Excel date serial number or date literal.
    • Must be later than settlement; otherwise YIELDDISC returns #NUM!.
  3. pr (required)

    • Type: numeric value expressing price per 100 of face value.
    • Typically between 0 and 100; values greater than 100 represent a security trading at a premium.
  4. redemption (required)

    • Type: numeric value per 100 face value paid at maturity.
    • Standard instruments use 100; structured bills can use other numbers.
  5. basis (optional)

    • Type: integer 0–4.
    • Determines the day-count convention:
      0 – US (NASD) 30/360
      1 – Actual/Actual
      2 – Actual/360
      3 – Actual/365
      4 – European 30/360
    • If omitted, Excel uses 0.

Data preparation rules:

  • Convert text dates to true Excel dates with DATE or DATEVALUE.
  • Clean imported price feeds—remove percentage signs and ensure decimal points.
  • Validate that settlement is not a non-business day when you later rely on settlement-date-specific cash flow models (YIELDDISC itself does not check business days).
  • Ensure price and redemption are entered in consistent units; avoid mixing 98.25 and 1000.
  • Handle edge cases by wrapping the function in IFERROR to trap invalid inputs.

Step-by-Step Examples

Example 1: Basic Scenario

Imagine you purchase a 180-day Treasury bill on 2 January 2024 for 98.25 per 100 face value, maturing on 30 June 2024. You need to report its annual yield using the Actual/360 basis (basis 2).

Step 1 – Set up the worksheet

  • Enter the following labels in [A1:A5]: Settlement, Maturity, Price, Redemption, Basis.
  • Enter these values in [B1:B5]: 2-Jan-2024, 30-Jun-2024, 98.25, 100, 2.
  • Format [B1] and [B2] as Short Date; [B3] and [B4] as Number with two decimals.

Step 2 – Enter the formula

  • In cell [B6] type:
=YIELDDISC(B1,B2,B3,B4,B5)

Press Enter. Excel returns approximately 3.45 percent (0.0345). Format [B6] as Percentage with two decimals to display 3.45 %.

Step 3 – Understand the result
A price of 98.25 means you pay 98.25 and receive 100 six months later. The yield represents the annualized return on that discount, using Actual/360 convention, which divides the six months’ actual days by 360.

Why it works: YIELDDISC first determines the day count between settlement and maturity (in this case 181 days). It divides the discount [redemption minus price] by price, then scales by 360 divided by 181.

Common variations:

  • Switching basis 1 (Actual/Actual) slightly changes the yield to 3.43 %.
  • Using a different redemption value—say 100.50 for a structured bill—would increase the yield proportionally.

Troubleshooting tips:

  • #VALUE! indicates non-date inputs; wrap text dates in DATEVALUE.
  • #NUM! often appears when settlement ≥ maturity or basis outside 0–4.

Example 2: Real-World Application

Scenario: A corporate treasurer manages a rolling program of commercial paper to fund working capital. On 15 March 2024 the company buys three issues:

IssueSettlementMaturityPriceRedemptionBasis (Actual/365)
CP-A15-Mar-2414-Jun-2499.101003
CP-B15-Mar-2413-Sep-2497.801003
CP-C15-Mar-2413-Dec-2495.501003

Objective: calculate individual yields, then compute a portfolio-weighted yield.

Step 1 – Enter the table above into [A1:F4].
Step 2 – In [G1] type Yield.
Step 3 – In [G2] enter:

=YIELDDISC(B2,C2,D2,E2,F2)

Copy downward to [G4]. Results:

  • CP-A: 3.11 %
  • CP-B: 4.45 %
  • CP-C: 4.71 %

Step 4 – Add notional amounts in column H (10 million, 5 million, 5 million).
Step 5 – Compute the weighted yield:

=SUMPRODUCT(G2:G4,H2:H4)/SUM(H2:H4)

Result ≈ 3.83 %.

Business context: Management now sees the blended cost of funds for the next nine months. If the weighted yield exceeds the firm’s hurdle rate, they explore alternative financing.

Integration with other features:

  • Use a Data Table to stress-test yields at different purchase prices.
  • Combine with conditional formatting to highlight yields above 5 %.
  • Automate data refresh with Power Query from a market-data CSV.

Performance considerations: Even with thousands of issues, YIELDDISC is lightweight. Calculations remain instantaneous, and SUMPRODUCT handles portfolio-level metrics in one pass.

Example 3: Advanced Technique

Edge case: A money-market fund buys a zero-coupon note indexed to EURIBOR with a non-standard redemption value of 101.5 and odd-day count due to a holiday-driven settlement. They must calculate yield using European 30/360 with strict compliance.

Data:

  • Settlement: 28-April-2024
  • Maturity: 3-November-2024
  • Price: 99.40
  • Redemption: 101.5
  • Basis: 4 (European 30/360)

Step 1 – Load the inputs in cells [B1:B5] as earlier.
Step 2 – Because the settlement date falls on a Sunday market holiday, ensure the transaction actually settles on Monday 29-April-2024. Use:

=WORKDAY(A2,1,holidays)

to adjust automatically. Place the adjusted date in [B1].

Step 3 – Enter the yield formula in [B6]:

=YIELDDISC(B1,B2,B3,B4,B5)

Result ≈ 4.24 %.

Advanced aspects:

  • Non-standard redemption requires accurate interpretation of prospectus documents.
  • Using WORKDAY ensures compliance with actual settlement calendars.
  • If the instrument’s cash flow is part of a dynamic model, wrap YIELDDISC inside LET to store intermediate variables and minimize redundant calculations.

Optimization tips:

  • For large portfolios, store basis in a named range to avoid hard-coding.
  • Use formula auditing to trace precedents when reconciling with external pricing.
  • Embed IFERROR around YIELDDISC to capture outliers:
=IFERROR( YIELDDISC(...), "Check dates/prices")

Tips and Best Practices

  1. Always format settlement and maturity as genuine dates. Excel converts “03/01/24” differently in US vs European regional settings; specify DATE(2024,1,3) to avoid ambiguity.
  2. Keep price and redemption in identical units. If your data feed provides price in percent (98.25) but redemption in currency (1000), divide redemption by 10 to normalize to per 100.
  3. Store basis codes (0–4) in a validation list so users cannot input invalid numbers.
  4. Use named ranges (e.g., rngSettle, rngMaturity) inside YIELDDISC to make long models readable.
  5. When reporting, format yields with two decimals but retain full precision in hidden helper columns to prevent rounding errors in aggregated metrics.
  6. For scenario analysis, build a one-input Data Table varying price to instantly see the yield curve for a given instrument.

Common Mistakes to Avoid

  1. Reversing settlement and maturity: YIELDDISC quietly returns #NUM! if settlement is later than maturity. Double-check entries or enforce a data-validation rule with a custom formula like =B1<B2.
  2. Mixing day-count conventions: Analysts sometimes paste data assuming Actual/360 into a template set to 30/360, leading to yield differences of several basis points. Document basis selection clearly.
  3. Entering price as 0.9825 instead of 98.25: Because YIELDDISC treats price as per 100, an incorrect scale inflates yield massively. Use input masks or helper columns to convert.
  4. Copying formulas without locking cell references: Relative references in SUMPRODUCT or YIELDDISC may shift when new rows are inserted. Apply absolute references [$B$1] or structured tables to stabilize the model.
  5. Ignoring error trapping: When importing dozens of instruments, one malformed date can propagate #VALUE! errors through summary calculations. Wrap critical cells in IFERROR or VALIDATE functions to isolate problems early.

Alternative Methods

Although YIELDDISC is the gold-standard, you might encounter situations where an alternative is required. The table below contrasts major options.

MethodProsConsBest Use Case
YIELDDISCSingle function, supports all common bases, built-in.Requires Excel 2007+.Standard treasury bills, commercial paper.
Simple Yield Formula (redemption/price-1)*(basis_days/year) / daysWorks in any spreadsheet, easy to audit.Manual day-count math, prone to error.Educational demos, very old Excel versions.
XIRR on cash flowsHandles irregular payments, variable prices.Needs explicit cash-flow schedule; iterative.Structured notes with interim coupons.
Financial Calculator / Add-inIntegrates with enterprise systems.Extra cost, possible version conflicts.High-volume trading desks using shared templates.

Performance: YIELDDISC and simple yield formulas are equally fast. XIRR is slower because it iterates but remains acceptable for portfolios under several thousand rows.
Compatibility: XIRR and DIY formulas are cross-compatible with Google Sheets, which currently lacks YIELDDISC.
Migration: If you convert from a Google Sheets model to Excel, replace custom yield formulas with YIELDDISC for clarity, or use a helper column mapping.

FAQ

When should I use this approach?

Use YIELDDISC whenever you must annualize the return on a security that pays no coupon and is issued at a discount. Typical scenarios include treasury bills, commercial paper, bankers’ acceptances, and certain zero-coupon municipal notes.

Can this work across multiple sheets?

Yes. Simply reference cells on other sheets, e.g., =YIELDDISC(Data!B2,Data!C2,...). For consolidated reports, store inputs in a master sheet and yield formulas in an analysis sheet to keep separation of data and calculations.

What are the limitations?

YIELDDISC cannot price instruments with interim cash flows or interest compounding. It assumes a single payment at maturity. It also supports only five day-count bases. For exotic structures, use PRICE or XIRR.

How do I handle errors?

Encapsulate the function: =IFERROR(YIELDDISC(...),"Input error"). Diagnose #NUM! by checking date order and basis. Diagnose #VALUE! by verifying that price and redemption are numeric and dates are valid serial numbers.

Does this work in older Excel versions?

YIELDDISC exists in Excel for Office 365, Excel 2019, 2016, 2013, 2010, and 2007. Excel 2003 and earlier require custom formulas or add-ins. Google Sheets does not currently include YIELDDISC, so use an equivalent custom formula or Apps Script.

What about performance with large datasets?

YIELDDISC is non-volatile and lightweight. A modern desktop can recalculate 100 000 rows in under one second. For best speed, avoid volatile precedents like NOW() feeding dates, and turn off automatic calculation while bulk-loading data.

Conclusion

Calculating yields on discounted securities is a cornerstone skill for anyone working in treasury, portfolio management, or audit. Excel’s YIELDDISC function delivers a fast, transparent, and industry-standard answer with minimal setup. By learning how to structure inputs, choose the correct day-count basis, and integrate YIELDDISC into larger models, you eliminate spreadsheet risk and gain confidence in your performance metrics. Continue refining your fixed-income toolkit by exploring PRICE for coupon bonds and XIRR for irregular cash flows, and you will possess a comprehensive command of Excel’s bond-pricing capabilities.

We use tracking cookies to understand how you use the product and help us improve it. Please accept cookies to help us improve.