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
- 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)or6/15/2024to avoid text-entry errors. - 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
1. - Choose the appropriate financial function based on what you’re calculating. Common examples:
YIELDMAT(settlement, maturity, issue, rate, price, [basis])for yield at maturityPRICEMAT(settlement, maturity, issue, rate, yield, [basis])for price per $100 face valueINTRATE(settlement, maturity, investment, redemption, [basis])for total interest rateDISC(settlement, maturity, price, redemption, [basis])for discount rate
issueis optional in some functions but required in others—check the function’s syntax. - Enter the formula with the basis argument. For instance, to calculate the yield of a security:
- Settlement date in
A2, maturity inA3, issue date inA4, annual coupon rate inB2, and price inB3. - Use:
=YIELDMAT(A2, A3, A4, B2, B3, 1)for actual/actual basis.
- Settlement date in
- 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
1or 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 theissuedate 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 withVALUE().
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 pressCtrl + Ato open the argument dialog—this lists required fields and examples. - For bonds with coupons, use
YIELDinstead ofYIELDMATif maturity and coupon dates align—YIELDMATassumes all interest is paid at maturity.
Troubleshooting
If your formula returns an error, follow these steps in order:
- Check for #VALUE!: This usually means a date is stored as text. Select the date cell, press
F2thenEnterto re-enter it, or use=DATE(YEAR(A2), MONTH(A2), DAY(A2))to force a serial number. - 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).
- Review argument order:
PRICEMATuses=PRICEMAT(settlement, maturity, issue, rate, yield, basis), whileDISCuses=DISC(settlement, maturity, price, redemption, basis). Mixing uprateandyieldorpriceandredemptioncauses incorrect results. - 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.
- 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)
- A2 (settlement):
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 likeYIELDMAT, PRICEMAT, INTRATE, and DISC. You cannot type =BASIS(...) directly.
Which basis should I use for U.S. Treasury bonds?
Use basis1 (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 supportsYIELDMAT, PRICEMAT, and DISC with the same basis values, but INTRATE may behave differently. Always verify with small test cases before using in production spreadsheets.