Function Problems

Classify Excel Dates That Are 30, 60, or 120 Days Old

Huda QurayshiHuda Qurayshi Nov 18, 2026 868 views

Question details

Classify dates according to whether they are at least 30, 60, or 120 days before today.

Classify Excel Dates That Are 30, 60, or 120 Days Old
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

Select B1 and enter =IF(A1="","",IFS(TODAY()-A1>=120,">=120",TODAY()-A1>=60,">=60",TODAY()-A1>=30,">=30",TRUE,"<30")).

2
Apply it to other dates

Press Enter, then drag the fill handle from B1 down alongside the remaining dates in column A.

Classify dates with the IFS function
How the labels work: The thresholds are inclusive: a date exactly 30, 60, or 120 days old receives the corresponding label. Future dates are labeled <30.
Classify dates in WPS Spreadsheets

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. 1. Open the spreadsheet: Open WPS Office, select Spreadsheets, and open your workbook with dates in column A.
  2. 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. 3. Fill the labels: Press Enter, then drag the fill handle from B1 down to apply the formula to the other date rows.
  4. 4. Save the workbook: Select File > Save or Save As and choose an Excel-compatible format such as XLSX.
Classify dates at the 30-, 60-, and 120-day thresholdsKeep labels current with the TODAY functionOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

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.