The BASIS Excel formula calculates the number of days between two dates based on a specified day count convention, commonly used in finance and accounting for interest calculations. It does not exist as a standalone function named BASIS—instead, you likely mean the BASIS argument used in financial functions like YIELDMAT, PRICEMAT, INTRATE, and DISC. This argument determines the day-count basis (e.g., 30/360, actual/actual) that affects how interest accrues over time. To use it, you must pass it as the fifth (or fourth, depending on the function) argument in one of these supported functions. Ensure your dates are valid Excel serial numbers and your basis value is an integer from 0 to 4.

What You'll Need

  • Microsoft Excel (2010 or later; most versions support these functions)
  • Valid maturity and settlement dates (entered as Excel date values, not text)
  • Understanding of your financial instrument’s required day-count convention (e.g., actual/360 for some Treasury bills)
  • Correct basis number (0–4) corresponding to your convention

Step-by-Step

  1. Open Excel and ensure your workbook is set to display dates correctly. Enter your settlement date in one cell (e.g., A2) and maturity date in another (e.g., A3). Use DATE(2024,6,15) or 6/15/2024 to avoid text-entry errors.
  2. Determine the correct basis number based on your convention:
    • 0 or omitted = US (NASD) 30/360
    • 1 = Actual/actual (used for U.S. Treasury bonds)
    • 2 = Actual/360
    • 3 = Actual/365
    • 4 = European 30/360
    For example, if your bond uses actual/actual, your basis value is 1.
  3. Choose the appropriate financial function based on what you’re calculating. Common examples:
    • YIELDMAT(settlement, maturity, issue, rate, price, [basis]) for yield at maturity
    • PRICEMAT(settlement, maturity, issue, rate, yield, [basis]) for price per $100 face value
    • INTRATE(settlement, maturity, investment, redemption, [basis]) for total interest rate
    • DISC(settlement, maturity, price, redemption, [basis]) for discount rate
    Note: issue is optional in some functions but required in others—check the function’s syntax.
  4. Enter the formula with the basis argument. For instance, to calculate the yield of a security:
    • Settlement date in A2, maturity in A3, issue date in A4, annual coupon rate in B2, and price in B3.
    • Use: =YIELDMAT(A2, A3, A4, B2, B3, 1) for actual/actual basis.
    Ensure all date cells are formatted as dates and numeric values (e.g., price, rate) have no extra characters.
  5. Verify the result by cross-checking with a known example. For a 180-day T-bill with actual/360 basis (2), use =DISC(A2, A3, 99.5, 100, 2)—this should return ≈0.01006 or 1.006% discount rate.

Common Mistakes

  • Using text dates: Entering "6/15/2024" as text causes #VALUE! errors. Always use Excel’s date functions or ensure cells are formatted as dates.
  • Wrong basis value: Typing "1/actual" instead of 1 or using a letter (e.g., "A") triggers #NUM! errors. Basis must be 0–4.
  • Mismatched date order: Settlement must be before maturity. Reversing them (e.g., maturity in A2, settlement in A3) yields #NUM!.
  • Missing required arguments: For YIELDMAT, omitting the issue date causes #VALUE!. Double-check the function’s parameter list in Excel’s help.
  • Non-numeric inputs: Including commas or dollar signs in price/yield cells (e.g., $99.50) breaks the formula. Use plain numbers or wrap with VALUE().

Tips

  • Use cell references instead of hardcoding dates or basis values. This makes formulas easier to audit and update.
  • Test with sample data first. For example, set settlement = 1/1/2024, maturity = 7/1/2024, rate = 5%, price = 98, basis = 1. =YIELDMAT(DATE(2024,1,1), DATE(2024,7,1), DATE(2023,7,1), 0.05, 98, 1) should return ≈5.25%.
  • Enable formula auditing (Formulas > Show Formulas) to spot typos in arguments.
  • Check Excel’s function wizard: Type =YIELDMAT(, then press Ctrl + A to open the argument dialog—this lists required fields and examples.
  • For bonds with coupons, use YIELD instead of YIELDMAT if maturity and coupon dates align—YIELDMAT assumes all interest is paid at maturity.

Troubleshooting

If your formula returns an error, follow these steps in order:

  1. Check for #VALUE!: This usually means a date is stored as text. Select the date cell, press F2 then Enter to re-enter it, or use =DATE(YEAR(A2), MONTH(A2), DAY(A2)) to force a serial number.
  2. Fix #NUM!: Verify settlement < < maturity, and ensure basis is 0–4. Also confirm price/redemption values are positive (e.g., price < redemption for discount instruments).
  3. Review argument order: PRICEMAT uses =PRICEMAT(settlement, maturity, issue, rate, yield, basis), while DISC uses =DISC(settlement, maturity, price, redemption, basis). Mixing up rate and yield or price and redemption causes incorrect results.
  4. Ensure Excel’s Analysis ToolPak is installed for older Excel versions (2007 and earlier): Go to File > Options > Add-ins > Manage Excel Add-ins > check Analysis ToolPak. Newer versions include these functions by default.
  5. Test with a known working example: Use these inputs:
    • A2 (settlement): DATE(2024,3,15)
    • A3 (maturity): DATE(2024,9,15)
    • A4 (issue): DATE(2023,9,15)
    • B2 (rate): 0.04
    • B3 (price): 98
    • C2 (formula): =YIELDMAT(A2,A3,A4,B2,B3,1)
    This should yield ≈4.12%. If it doesn’t, check for hidden spaces or non-breaking characters in cells.

Frequently Asked Questions

Does the BASIS formula exist as a standalone function?

No. BASIS is not a function—it is an argument within financial functions like YIELDMAT, PRICEMAT, INTRATE, and DISC. You cannot type =BASIS(...) directly.

Which basis should I use for U.S. Treasury bonds?

Use basis 1 (Actual/Actual). The U.S. Treasury uses this convention for most marketable bonds to reflect exact day counts over leap years.

Can I use dates before 1900 in these formulas?

No. Excel’s date system starts at January 1, 1900. Dates before this (e.g., 1899-12-31) will cause #VALUE! errors. Use a workaround like storing dates as text and calculating manually if absolutely necessary.

Why does my result change when I switch from basis 0 to basis 1?

Basis 0 (30/360) assumes 30-day months and 360-day years, smoothing interest calculations. Basis 1 (Actual/Actual) uses real days, so leap years and varying month lengths affect the result—especially noticeable over multi-year periods.

Is there a way to calculate basis manually without financial functions?

Yes, but it’s complex. For actual/360, use (maturity - settlement) / 360. For 30/360, you’d need to apply the US or European rules (e.g., adjust last-day-of-month dates). Financial functions automate these edge cases reliably.

Do these functions work in Google Sheets?

Yes, but with limitations. Google Sheets supports YIELDMAT, PRICEMAT, and DISC with the same basis values, but INTRATE may behave differently. Always verify with small test cases before using in production spreadsheets.