How to Calculate Partial Months in Excel with DATE Functions
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.

- 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.
Ensure your start and end dates are formatted as valid Date values in Excel, not as text, to prevent formula errors during calculation.
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.
Click on the blank cell where you want the fractional month result to appear.
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.
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 Total Fractional Months Across Multiple Years
Use this method when the date interval spans more than one year and you need the total months, using the earlier month's days as the divisor.
Quick Fractional Month Estimation Using YEARFRAC
If strict daily precision based on specific month lengths isn't required, you can use YEARFRAC multiplied by 12 for a simpler, faster formula.
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. Open WPS Spreadsheet: Launch WPS Office and open your workbook containing the start and end dates.
- 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. 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.

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.




