Calculation Issues

How to Calculate Partial Months in Excel with DATE Functions

Steve KSteve K Nov 2, 2026 869 views

Question details

The user needs to calculate fractional or partial months between two dates in Excel, as standard functions like DATEDIF only return whole numbers.

How to Calculate Partial Months in Excel with DATE Functions
Product
Excel
Device & OS
not provided
Scenario
Calculating exact durations including fractional months (e.g., 3.6 months) for project timelines, financial models, or age calculations.
Observed behavior
Standard DATEDIF with 'm' or 'ym' units only returns whole completed months, ignoring the fractional remaining days of the incomplete month.
Before you start

Ensure your start and end dates are formatted as valid Date values in Excel, not as text, to prevent formula errors during calculation.

Solution 1Recommended

Calculate Partial Months Based on Ending Month

Use this method to calculate fractional months within a year, using the total days of the end month to determine the decimal fraction.

This formula uses DATEDIF to find the completed months, and then adds the remaining days divided by the total number of days in the ending month.

1
Select a target cell

Click on the blank cell where you want the fractional month result to appear.

2
Enter the DATEDIF and EOMONTH formula

Type the formula: =ROUND(DATEDIF(D2,E2,"ym")+DATEDIF(D2,E2,"md")/DAY(EOMONTH(E2,0)),1) assuming D2 is your start date and E2 is your end date.

3
Apply the formula

Press Enter to see the result. You can then drag the fill handle down to apply this calculation to other rows in your dataset.

Calculate Partial Months Based on Ending Month
Rounding the Result: The ROUND function at the beginning limits the result to 1 decimal place. You can change the '1' at the end of the formula to '2' if you need more precision.
Master Date Calculations

Calculate Dates Seamlessly in WPS Spreadsheet

WPS Spreadsheet fully supports advanced date functions like DATEDIF, EOMONTH, and YEARFRAC, making it easy to track fractional months, ages, and project durations without worrying about formula compatibility.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook containing the start and end dates.
  2. 2. Enter the Formula: Select an empty cell and type your preferred date formula, such as =YEARFRAC(A1,B1)*12 or the more precise DATEDIF combination.
  3. 3. Drag to Apply: Press Enter to instantly calculate the partial months, then drag the fill handle at the bottom right of the cell to apply the formula down the column.
Fully compatible with Microsoft Excel date formulas and functions100% free with a lightweight, user-friendly interfaceBuilt-in function hints to help you write complex formulas accuratelyCross-platform support for Windows, Mac, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

Why does the standard DATEDIF formula only return whole months?

The DATEDIF function is fundamentally designed to count only completed intervals. When you use the 'm' or 'ym' unit, it stops counting once the last full month is reached, simply ignoring the remaining days unless you calculate them separately using the 'md' unit.

What is the difference between 'm' and 'ym' in DATEDIF?

The 'm' argument calculates the total number of complete months between two dates across multiple years. The 'ym' argument calculates only the remaining complete months after subtracting the full completed years.

Can I round the fractional months to a specific decimal place?

Yes. You can wrap your entire calculation in the ROUND function. For example, =ROUND(your_formula, 1) will round the fractional result to one decimal place, while changing the 1 to a 2 will round it to two decimal places.

Why should I use EOMONTH when calculating the remaining days?

Using the EOMONTH function allows the formula to dynamically find the exact number of days in that specific month (e.g., 28, 30, or 31). This creates an accurate divisor for the remaining days, yielding a highly precise fractional calculation.