Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to identify or highlight expired or upcoming dates in Excel?

For some supermarkets or sale departments, the items which have been expired need to be removed from the shelf, and the items which will expire in upcoming date need to be sold as quickly as possible. But how to quickly identify the expired or upcoming date items must be a big problem for them.

doc identify expired upcoming date 1
For instance, you have a sheet which list all items and their expired dates as left screenshot shown. And now I introduce the tricks to identify or highlight the expired or upcoming dates in Excel.


Highlight expired or upcoming date with Conditional Formatting
Identify and highlight expired or upcoming date with Kutools for Excel good idea3

Select Cells/Rows/Columns with one or two criteria in Excel

The select Specific Cells of Kutools for Excel can quicky select all cells or rows or columns in a range based on one criterion or two criterion. Click for 30 days free trial!
doc select specific cell 1
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble   Highlight expired or upcoming date with Conditional Formatting


To apply Conditional Formatting to highlight the expired or upcoming dates, please follow these steps:

1. Select the due date cells, and then click Home > Conditional Formatting > New Rule. See screenshot:
doc identify expired upcoming date 2

2. Then in the New Formatting Rule dialog, select Use a formula to determine which cells to format under Select a Rule Type section, then enter this formula = B2<=TODAY() (B2 is the first cell in the selected dates) to the Format values where this formula is true textbox, you can change it to meet your need), and then click Format. See screenshot:
doc identify expired upcoming date 3

3. In the popping Format Cells dialog, under Fill tab, select one background color as you need to highlight the expired dates. See screenshot:
doc identify expired upcoming date 4

4. Click OK > OK, now the expired dates have been highlighted, and you can find the relative items. See screenshot:
doc identify expired upcoming date 5

Tip:

1. “Today” is the current date, and in our case Today is 4/27/2016.

2. If you want to find the upcoming date, for instance, to find the items which will be expired in 90 days, you can use this formula =AND($B2>TODAY(), $B2-TODAY()<=90) in the Format values where this formula is true textbox. See screenshots:
doc identify expired upcoming date 6


arrow blue right bubble   Identify and highlight expired or upcoming date with Kutools for Excel

Here I introduce a handy tool – Kutools for Excel for you, its Select Specific Cells also can help you quickly identify and highlight the expired or upcoming expire dates.

  Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Select blank cell, E2 for instance and enter this formula =TODAY() into it and press Enter key to get the current date. See screenshot:
doc identify expired upcoming date 7

2. Then select the date cells that you want to identify the expired dates, and click Kutools > Select > Select Specific Cells. See screenshot:
doc identify expired upcoming date 8

3. In the Select Specific Cells dialog, check Cell or Entire row as your need under Selection type, and select Less than or equal to from the first list of Specific type, and then click the next button doc selection to select today date to it. See screenshot:
doc identify expired upcoming date 9

4. Click Ok, a dialog pops out to tell you the number of cells meeting the specified criteria, and at the same time, all the dates less than or equal to today have been selected.
doc identify expired upcoming date 10doc identify expired upcoming date 11

5. And if you want to highlight the selected cells, you just need to click Home, and go to Fill Color to select a color to highlight them. See screenshot:
doc identify expired upcoming date 12
doc identify expired upcoming date 13

Tip: If you want to identify the upcoming expired items, you just need to enter this formula =TODAY() and =TODAY()+90 into two blank cells to get the current date and the date after 90 days from today. And then specify the criteria of Greater than or equal to Today and Less than or equal to Today + 90 Days in the Select Specific Cells dialog. See screenshot:
doc identify expired upcoming date 14

Now the dates will be expired in upcoming 90 days have been selected. See screenshot:

You may be interested in this:

Quickly Count/Sum cells by background or fomt color in Excel

In some cases, you may have a range of cells with multiple colors, and what you want is to count/sum values based on same color, how can you quickly calculate?
With Kutools for Excel's Count by Color, you can quickly do many calculations by color, and also can generate a report of the calculated result.  Click for free full featured trial in 30 days!
doc count by color 1
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.
pay attention1If you are interested in this addi-in, download the 60-days free trial.

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    EliR · 1 years ago
    Is there a modified version of these formulas that I can use for future dates?
    I have goods due on future specific dates but I need to purchase materials ahead of time (90, 100, 120 days in advance)
    What do you think?
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Hi, EliR, I do not understand your question clearly, in my comprehension, you want to highlight the goods due date which larger than 90.100,1200 days, if so, you can use this formula =$B2-TODAY()>=90, you can change B2 and 90 to your need.
  • To post as a guest, your comment is unpublished.
    Imran Ashraf · 1 years ago
    i need a way to identify and track items that are sitting old from purchase date ... 0-8 months items green , 8-18 months yellow , 18 months + red
  • To post as a guest, your comment is unpublished.
    hasto6 · 1 years ago
    =AND($B2>TODAY(), $B2-TODAY()<=90)

    The formula did not work. There is an error somewhere
  • To post as a guest, your comment is unpublished.
    sokphearath · 1 years ago
    Hello, when have date nearly expire, i want excel will auto show up only cell that expired or expired soon.. how?
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Only select the date column then apply conditional formatting function, and use above formula.
  • To post as a guest, your comment is unpublished.
    Semir · 1 years ago
    Hi,

    If I have in the first column delivery dates for some part (e.g. 06/12/2017) and in the second finished product shipment date (e.g.11/12/2017) and I want for cell in the first column to be filled with the red color if the difference between columns is less than 7 days . Is there a chance to apply these rules for more cells at once so I won't have to do this for every cell separately.

    Thanks in advance
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      Also, you can ues the Conditional Fomratting to solve it. Select the first column and use this formula =$A1-$B1<7 in Conditional formatting new rule, then select a color for the cells in Format Cells dialog. See screenshot:
  • To post as a guest, your comment is unpublished.
    Bascud · 2 years ago
    What if i have multiple due date for one Product? How can i highlight the nearest due date?


    Example:

    BH-1-1 - - - - 1/20/2018
    BH-1-1 - - - - 5/20/2018
    • To post as a guest, your comment is unpublished.
      Sunny · 1 years ago
      The all above methods can work for this, they select or highlight cells based on the date not the product, so non of the product business
  • To post as a guest, your comment is unpublished.
    sEB · 2 years ago
    dOESN'T WORK!
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Could you explain which method did not work for you? If possible, please let me know what's your data? Thank you.