ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. Expiry Dates in Excel: Days Left and Status Flags

Expiry Dates in Excel: Days Left and Status Flags

By ExcelReady Team·Updated November 1, 2026·6 min read

The short answer

An expiry date formula in Excel usually has three parts. Work out the expiry date with =EDATE(B2,12) for 12 months after the issue date. Count the days left with =C2-TODAY(). Then flag the status with =IF(C2<TODAY(),"Expired",IF(C2-TODAY()<=30,"Expiring soon","OK")). Because TODAY updates daily, the tracker stays current by itself.

Key takeaways

  • Expiry date from an issue date: =EDATE(B2,12) for 12 months, or =B2+90 for 90 days.
  • Days left: =C2-TODAY(); a negative number means it has already expired.
  • Status: =IF(C2<TODAY(),"Expired",IF(C2-TODAY()<=30,"Expiring soon","OK")).
  • Check for Expired first, or every expired item also counts as expiring soon.
  • Count expired items with =COUNTIF(C2:C50,"<"&TODAY()).
On this page+
  1. How to calculate an expiry date from an issue date
  2. How to count the days left until expiry
  3. How to flag Expired, Expiring soon and OK
  4. How to handle empty rows
  5. How to highlight expired and expiring items
  6. How to count expired and expiring items
  7. Common mistakes with expiry formulas
  8. Practise it

A good expiry date formula in Excel answers three questions: when does it expire, how many days are left, and does it need attention? EDATE works out the date, TODAY counts the days, and IF turns the result into a clear flag like Expired or Expiring soon. This guide builds a certificate tracker step by step. The same formulas work for contracts, licences, stock and subscriptions.

How to calculate an expiry date from an issue date#

Add the validity period to the issue date. Which formula you need depends on how the period is stated:

ValidityFormulaIssued 20/11/2024 expires
12 months=EDATE(B2,12)20/11/2025
2 years=EDATE(B2,24)20/11/2026
90 days=B2+9018/02/2025
End of month, 12 months on=EOMONTH(B2,12)30/11/2025

EDATE adds whole months and keeps the same day of the month, which matches how most certificates and contracts are written. Adding days works because Excel stores dates as numbers that count days. EOMONTH suits items like payment cards that expire at the end of a month.

If the validity varies by row, put the number of months in its own column and use =EDATE(B2,E2). If the result shows a number like 46346, format the cell as a date (Windows: Ctrl+1; Mac: ⌘1).

How to count the days left until expiry#

Subtract TODAY() from the expiry date. TODAY returns the current date and updates whenever the file recalculates:

Excel formula
=C2-TODAY()

On 1 November 2026, the certificate tracker shows:

CertificateExpiresDays left
First aid20/11/202619
Forklift licence15/10/2026-17
Fire warden01/06/2027212
Food hygiene05/12/202634

A negative number means the item expired that many days ago. If you'd rather show 0 for expired items, use =MAX(0,C2-TODAY()). The TODAY function guide explains how it recalculates, and counting the days until a deadline covers countdowns in more depth.

How to flag Expired, Expiring soon and OK#

Use nested IF to turn the dates into status words. IF tests a condition and returns one value if it's TRUE and another if it's FALSE. Nesting puts a second IF in the FALSE part:

Excel formula
=IF(C2<TODAY(),"Expired",IF(C2-TODAY()<=30,"Expiring soon","OK"))

Read it in order:

  1. Is the expiry date before today? Then Expired.
  2. If not, is it 30 days away or less? Then Expiring soon.
  3. Otherwise, OK.

On 1 November 2026, First aid (19 days) shows Expiring soon, the Forklift licence shows Expired, and the other two show OK. Food hygiene is 34 days away, just outside the 30-day window.

The order of the tests matters. An expired item also has fewer than 30 days left, because its days-left number is negative. If you test "30 days or less" first, expired items show Expiring soon. Always check Expired first. The IF function guide and the guide to IF with dates cover more patterns.

In Excel 2019 or later, IFS reads more simply:

Excel formula
=IFS(C2<TODAY(),"Expired",C2-TODAY()<=30,"Expiring soon",TRUE,"OK")

The final TRUE,"OK" catches everything else. IFS checks the tests from left to right and stops at the first TRUE, so the same rule applies: put the Expired test first.

Using a warning period from a cell#

Teams often want different warning periods, such as 60 days for licences that take time to renew. Put the number of days in a cell, for example H1, and use it in the formula: =IF(C2<TODAY(),"Expired",IF(C2-TODAY()<=$H$1,"Expiring soon","OK")). Change H1 and every status updates at once.

How to handle empty rows#

Add a blank check at the start, so empty rows stay empty. An empty expiry cell counts as 0, which is earlier than today, so the status formula would call it Expired:

Excel formula
=IF(C2="","",IF(C2<TODAY(),"Expired",IF(C2-TODAY()<=30,"Expiring soon","OK")))

This matters in trackers where you leave rows ready for new items. The same idea applies to the days-left column: =IF(C2="","",C2-TODAY()).

How to highlight expired and expiring items#

Use conditional formatting with the same tests, so colours update every day. Select the table rows, for example A2:D50, and add two rules with Home > Conditional Formatting > New Rule > Use a formula:

RuleFormulaFill
Expired=AND($C2<>"",$C2<TODAY())Red
Expiring soon=AND($C2>=TODAY(),$C2-TODAY()<=30)Amber

The $ before C makes every cell in the row check the expiry date in column C, so the whole row is coloured.

If the tracker has a status column, you can also format by the word itself: Highlight Cells Rules > Text that Contains > Expired. That keeps the logic in one place.

How to count expired and expiring items#

Use COUNTIF and COUNTIFS to put a summary at the top of the tracker. Join the operator to TODAY with &:

CountFormulaResult on 1 Nov 2026
Expired=COUNTIF(C2:C5,"<"&TODAY())1
Expiring in 30 days=COUNTIFS(C2:C5,">="&TODAY(),C2:C5,"<="&TODAY()+30)1

If you have a status column, =COUNTIF(D2:D5,"Expired") is even simpler.

The same structure works for many trackers. A job application tracker counts days since you applied, and an order tracker flags late deliveries.

Common mistakes with expiry formulas#

Most problems come from test order, fixed dates or blank cells. Check these:

  1. Testing "soon" before "expired". Expired items then show as Expiring soon.
  2. Typing today's date by hand. A fixed date never updates. Use TODAY() in formulas. Use Ctrl+; (Mac: Control+;) only for dates that should stay fixed, such as the issue date; see inserting the current date with a shortcut.
  3. Adding 365 for a year. Leap years make it drift. Use EDATE with 12 months.
  4. Blank rows marked Expired. Add the C2="" check.
  5. Days left shows a date. Format the cell as General.

Practise it#

Expiry trackers combine date maths and IF logic, a pairing that comes up in many job tests. Practise counting days between dates in a live spreadsheet, then practise the IF function to build status flags. Each formula is checked instantly. Or try the exercise on this page first.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

F2 holds the check date (in a live tracker you'd use TODAY()). Click D2 and flag the certificate: Expired if C2 is before $F$2, Expiring soon if it expires within 30 days, otherwise OK. Use nested IF.

fx
ABCDEFG
1
Certificate
Issued
Expires
Status
Check date
2
First aid
45616
46346
46327
3
Forklift licence
45214
46310
4
Fire warden
45809
46539
5
Food hygiene
45265
46361
6
7
8

Tip: Test for Expired first. Then, inside the second IF, check whether C2-$F$2 is 30 or less.

Practise this in a lesson

LessonDays between dates: DAYS, DATEDIF and TODAYMeasure the gap between two dates in days, months and years, and calculate tenure as of today.LessonThe IF functionMake a cell show one result or another depending on a condition, like Pass/Fail or Over/Under budget.Function guideTODAYUse Excel's TODAY function for days until a deadline, overdue flags and ages that update by themselves. Examples, pitfalls and live practice.Function guideIFLearn Excel's IF function with practical examples: flag budgets, label rows and return blanks. Avoid the classic mistakes and practice live.

Frequently asked questions

How do I calculate an expiry date in Excel?

+

Add the validity period to the issue date. Use =EDATE(B2,12) for 12 months, =EDATE(B2,24) for two years, or =B2+90 for 90 days. Format the result as a date.

How do I calculate the days left until expiry?

+

Subtract today's date from the expiry date: =C2-TODAY(). A positive number is days left, 0 means it expires today, and a negative number means it has expired.

How do I flag items that are expiring soon?

+

Use nested IF: =IF(C2<TODAY(),"Expired",IF(C2-TODAY()<=30,"Expiring soon","OK")). Change 30 to the warning period you need.

How do I highlight expired dates in red?

+

Select the rows, choose Home > Conditional Formatting > New Rule > Use a formula, enter =AND($C2<>"",$C2<TODAY()) and pick a red fill.

Why does my expiry status show Expired for empty rows?

+

An empty expiry cell counts as 0, which is earlier than today. Add a blank check first: =IF(C2="","",IF(C2<TODAY(),"Expired",...)).

Sources

  • TODAY function - Microsoft Support
  • IF function - Microsoft Support
  • EDATE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to calculate an expiry date from an issue date
  2. How to count the days left until expiry
  3. How to flag Expired, Expiring soon and OK
  4. How to handle empty rows
  5. How to highlight expired and expiring items
  6. How to count expired and expiring items
  7. Common mistakes with expiry formulas
  8. Practise it

Keep reading

Logic· 7 min read

IF Formulas With Dates in Excel: Before, After, Overdue

To use a date in an IF formula, compare the date cell with another date: =IF(B2<TODAY(),"Overdue","On time") flags anything due before today. For a fixed date, build it with DATE: =IF(B2>DATE(2026,12,31),"Next year","This year"). Don't type the date in quotes, because Excel then compares a number with text and gets it wrong.

Projects· 6 min read

Build a Job Application Tracker in Excel

A job application tracker in Excel is a table with one row per application: company, role, date applied, status and next follow-up. =TODAY()-C2 shows how many days you've been waiting, COUNTIF counts applications by status, and conditional formatting colors any application that has had no reply for two weeks.

Dates· 6 min read

Days Until a Deadline in Excel (Countdowns)

To count the days until a date in Excel, subtract today from it: =A2-TODAY(). The result updates every day and turns negative once the date has passed. Wrap it in IF to show "Overdue" or "Due today", and use =NETWORKDAYS(TODAY(),A2) to count only the working days left.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free