Function Problems

Why Excel YEARFRAC Gives Different Results with US NASD 30/360

Ayan MasoodAyan Masood Nov 20, 2026 869 views

Question details

Understand why YEARFRAC calculations using the US NASD 30/360 basis can differ when a period starts on the last day of February.

Why Excel YEARFRAC Gives Different Results with US NASD 30/360
Product
Microsoft Excel YEARFRAC
Device & OS
not provided
Scenario
Comparing the year fraction for a complete period with the sum of year fractions calculated for individual months.
Observed behavior
The total for the full period can differ from the sum of monthly calculations, particularly when the start date is the last day of February.
Before you start

Check that your start and end cells contain valid dates and that the YEARFRAC formula uses basis 0. Confirm which day-count convention your contract or calculation requires before changing the formula.

Solution 1Recommended

Use an explicit 30E/360 calculation when permitted

Use this alternative when consistent full-period and monthly totals are needed and the European 30E/360 convention is acceptable.

Excel documents a limitation in YEARFRAC with US NASD 30/360 when the start date is the last day of February. The 30E/360 convention below treats day 31 as day 30 and otherwise retains the actual day number, including in February.

30E/360 is not the same convention as US NASD 30/360, so its results may differ. Do not substitute it if your agreement requires US NASD rules.

1
Enter the period dates

Enter the start date in cell A2 and the end date in cell B2.

2
Calculate the fraction

In an empty cell, enter =((YEAR(B2)-YEAR(A2))*360+(MONTH(B2)-MONTH(A2))*30+MIN(DAY(B2),30)-MIN(DAY(A2),30))/360.

3
Compare monthly periods

Apply the same formula to each monthly interval, using each interval's end date as the next interval's start date. Use SUM to compare the monthly results with the full-period result.

Use an explicit 30E/360 calculation when permitted
Check the required convention: If US NASD 30/360 is mandatory, use an independently verified calculation that implements the exact rules required by your agreement rather than substituting 30E/360 or changing the actual dates.
Calculate year fractions in WPS Spreadsheets

Compare day-count calculations in WPS Spreadsheets

Use WPS Spreadsheets to compare YEARFRAC results with an explicit 30E/360 formula, provided that convention is appropriate for your calculation.

  1. 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an Excel file.
  2. 2. Enter the dates: Enter the start date in A2 and the end date in B2.
  3. 3. Calculate YEARFRAC: Enter =YEARFRAC(A2,B2,0) in C2 to calculate using the US NASD 30/360 basis.
  4. 4. Compare an alternative: If 30E/360 is permitted, enter =((YEAR(B2)-YEAR(A2))*360+(MONTH(B2)-MONTH(A2))*30+MIN(DAY(B2),30)-MIN(DAY(A2),30))/360 in D2 and compare the results.
Compare full-period and monthly year fractions in one sheetUse familiar spreadsheet formulas and cell referencesOpen and save Microsoft Excel XLSX filesWork with a free, easy-to-use spreadsheet editor
microsoft office alternative - wps office

Frequently Asked Questions

Why can YEARFRAC give an unexpected result for a February start date?

Excel documents a limitation with the US NASD 30/360 basis when the start date is the last day of February. A full-period result may differ from the sum of calculations for its monthly intervals.

What does basis 0 mean in YEARFRAC?

In =YEARFRAC(start_date,end_date,0), basis 0 selects the US NASD 30/360 day-count basis. It is also the default when the basis argument is omitted.

Can I replace US NASD 30/360 with 30E/360?

Only if your agreement or calculation permits it. The conventions handle some dates differently, so replacing one with the other can change the result.

Should I change February 28 to March 1 to avoid the issue?

Do not change the actual start date solely to alter the result. If US NASD 30/360 is required, use a verified calculation that follows the applicable rules for the original dates.