Calculate Laptop Age in Months with Excel DATEDIF and TODAY
Question details
Calculate the number of complete months since a laptop purchase date without a formula error.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A purchase date is stored in a worksheet, and the user wants the laptop's age in months to update automatically.
- Observed behavior
- The desired result is the number of complete months between the purchase date and today.
Enter the purchase date in C3 as a valid spreadsheet date, not text, and check that it is not later than today.
Calculate complete months with DATEDIF and TODAY
Use this formula to calculate the laptop's age in complete months and update it as the date changes.
Select cell C3 and enter the laptop purchase date in a format Excel recognizes.
Select an empty cell and enter =DATEDIF(C3,TODAY(),"m"). Do not put quotation marks around C3.
Press Enter. The result is the number of complete months between the date in C3 and today.
If the formula returns an error, check that C3 contains a valid date and is not in the future. If the date is stored as text, select C3 and use Data > Text to Columns to convert it to a date.

Calculate Months Since Purchase in WPS Spreadsheets
Use DATEDIF and TODAY in WPS Spreadsheets to calculate complete months since a laptop purchase and keep the result current.
- 1. Open a spreadsheet: Open WPS Spreadsheets and create a workbook or open an existing Excel file.
- 2. Enter the purchase date: Select C3 and enter the laptop purchase date as a valid date.
- 3. Calculate the age: Select an empty cell, enter =DATEDIF(C3,TODAY(),"m"), and press Enter.
- 4. Save the workbook: Choose Menu > Save As and select XLSX if you want an Excel-compatible file.

Frequently Asked Questions
Why does my DATEDIF formula return an error?
Check that C3 contains a valid date and that the date is not later than today. Also remove quotation marks around C3 and use the argument separator required by your regional settings.
Does the formula count partial months?
No. The "m" argument in =DATEDIF(C3,TODAY(),"m") counts complete months only.
Will the laptop age update automatically?
TODAY() returns the current date, so the result updates when the workbook recalculates. In Excel, check Formulas > Calculation Options and select Automatic if needed.
What if the purchase date is in another cell?
Replace C3 in the formula with the cell containing the purchase date. For example, use =DATEDIF(A2,TODAY(),"m") if the date is in A2.




