Convert Days to Months in Excel: Step-by-Step Guide
In this article
To turn days into months in Excel, you need to decide what "month" means for your data: a calendar month (e.g., 30 days = 1 month, 365 days = 12 months) or a decimal month (e.g., 45 days = 1.5 months). The simplest method is to divide the number of days by 30 or by 30.44 (the average days per month). For calendar-accurate results, use the DATEDIF function with "m" as the unit. This guide walks you through both approaches, plus common pitfalls and troubleshooting.
What You'll Need
- Microsoft Excel (any recent version; the steps apply to Excel for Microsoft 365, Excel 2019, 2021, and Excel for Mac).
- Your day values in a column (e.g., column A, starting at A2).
- Optional: a start date if you want calendar months between two dates.
Step-by-Step
- Enter your day values. Put the number of days in column A, starting at A2. For example, A2 = 45, A3 = 90, A4 = 365.
- Choose your conversion method. For a rough decimal month, divide by 30. For a more precise average, divide by 30.44. For calendar months between two dates, use DATEDIF.
- Write the formula for decimal months. In B2, type
=A2/30and press Enter. This gives 1.5 for 45 days. If you prefer the average month length, use=A2/30.44. - Format the result. Select B2, right-click, choose Format Cells, and pick Number with two decimal places. Copy the formula down column B by dragging the fill handle.
- For calendar months between two dates, use DATEDIF. Suppose start date is in C2 and end date in D2. In E2, type
=DATEDIF(C2,D2,"m"). This returns the number of whole months between the dates. Note: DATEDIF is a hidden function; it works but is not listed in the function wizard. - To get months and days combined, use DATEDIF with "md". For example,
=DATEDIF(C2,D2,"m")&" months "&DATEDIF(C2,D2,"md")&" days"gives a text string like "1 month 15 days". - If you have a start date and want to add a number of months, use EDATE. For example,
=EDATE(C2,3)returns the date three months after C2. This is useful for projecting dates, not for converting a day count.
Common Mistakes
- Using 30 days as a month for all calculations. This is fine for rough estimates but inaccurate for financial or contractual periods. Use 30.44 for average, or DATEDIF for exact calendar months.
- Forgetting that DATEDIF requires a start date and end date. It does not convert a single number of days; it calculates the difference between two dates.
- Not formatting the result as a number. Excel may show a date or a fraction; format cells to Number to see the decimal.
- Using the wrong unit in DATEDIF. "m" gives months, "d" gives days, "y" gives years. A typo like "M" (uppercase) works but "mm" does not.
- Assuming DATEDIF is available in all versions. It is available in most modern Excel versions but is undocumented; if you get a #NAME? error, your version may not support it. Use an alternative like
=(YEAR(D2)-YEAR(C2))*12+MONTH(D2)-MONTH(C2).
Tips
- Use 30.44 for the average days per month (365.25/12) when you need a decimal month that accounts for leap years.
- To round to whole months, wrap your formula in ROUND:
=ROUND(A2/30,0). - If you want to display the result as "X months", use a custom number format like
0.0 "months". - For payroll or billing, define your month length in a cell (e.g., 30) and reference it, so you can change it easily.
- Use DATEDIF with "m" only when both dates are valid Excel dates; text dates will cause errors.
Troubleshooting
- #VALUE! error: One of your cells contains text instead of a number or date. Check that A2 is a number, and C2/D2 are valid dates.
- #NUM! error with DATEDIF: The start date is later than the end date. Swap the arguments.
- Result shows a date instead of a number: The cell is formatted as Date. Change the format to Number or General.
- DATEDIF not working: Type the formula manually; it does not appear in the function list. If it still fails, use the YEAR/MONTH formula above.
- Decimal months look wrong: Check your divisor. Dividing by 30 gives 1.5 for 45 days, but dividing by 30.44 gives 1.48. Decide which is appropriate for your use case.
Frequently Asked Questions
How do I convert 90 days to months in Excel?
Use =90/30 to get 3 months, or =90/30.44 to get approximately 2.96 months. For calendar months between two dates, use DATEDIF with the start and end dates.
Can I convert a number of days to months without a start date?
Yes, by dividing the number of days by 30 or 30.44. This gives a decimal month value. There is no built-in function that converts a standalone day count to calendar months because months vary in length.
Why does DATEDIF give a different result than dividing by 30?
DATEDIF counts whole calendar months between two dates, respecting actual month lengths. Dividing by 30 assumes every month has 30 days, which is an approximation.
Is there a function that returns the month name from a date?
Yes, use TEXT: =TEXT(A2,"mmmm") returns the full month name (e.g., January). This is different from converting days to months.
How do I add months to a date in Excel?
Use EDATE: =EDATE(start_date, months). For example, =EDATE("1/15/2025",3) returns April 15, 2025. Ensure the start date is a valid date.
Can I use DATEDIF in Excel for Mac?
Yes, DATEDIF works in Excel for Mac, but like in Windows, it is not listed in the function wizard. Type it manually.