Classify Excel Dates That Are 30, 60, or 120 Days Old
Question details
Classify dates according to whether they are at least 30, 60, or 120 days before today.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains dates that need age-range labels based on the current date.
- Observed behavior
- Each date should receive the label for the highest applicable age threshold, or a label indicating it is less than 30 days old.
Place valid Excel dates in a column, such as column A, and leave an adjacent column available for the labels. The formulas below assume the first date is in A1.
Classify dates with the IFS function
Use this formula in an Excel version that supports IFS, such as Excel 2019 or later.
The formula checks the largest threshold first, so a date that is 120 days old is labeled >=120 rather than >=60. Blank cells remain blank.
Select B1 and enter =IF(A1="","",IFS(TODAY()-A1>=120,">=120",TODAY()-A1>=60,">=60",TODAY()-A1>=30,">=30",TRUE,"<30")).
Press Enter, then drag the fill handle from B1 down alongside the remaining dates in column A.

Use nested IF for older Excel versions
Use nested IF when your version of Excel does not support IFS.
Label dates by age in WPS Spreadsheets
Use a nested IF formula in WPS Spreadsheets to assign age labels that update with the current date.
- 1. Open the spreadsheet: Open WPS Office, select Spreadsheets, and open your workbook with dates in column A.
- 2. Enter the formula: Select B1 and enter =IF(A1="","",IF(TODAY()-A1>=120,">=120",IF(TODAY()-A1>=60,">=60",IF(TODAY()-A1>=30,">=30","<30")))).
- 3. Fill the labels: Press Enter, then drag the fill handle from B1 down to apply the formula to the other date rows.
- 4. Save the workbook: Select File > Save or Save As and choose an Excel-compatible format such as XLSX.

Frequently Asked Questions
What label does a date exactly 60 days old receive?
It receives >=60 because the formula uses the inclusive >= comparison.
Why does the formula return an error for a date?
Check the source cell, such as A1, to make sure it contains a valid spreadsheet date rather than text. Re-enter or convert the value to a date if needed.
Will the labels update automatically as dates get older?
Yes. TODAY() uses the current date, and the labels update when the workbook recalculates.
How can I leave the label blank when there is no date?
Use the outer IF(A1="","",...) check shown in the formulas. It leaves B1 blank when A1 is blank.




