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 60 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 60 days.

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial


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 60 days!
doc count by color 1
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.
pay attention1If you are interested in this addi-in, download the 60-days free trial.

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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 · 8 months 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 · 8 months 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: