How to Determine If Entered Date Has Passed or Not in Excel

Suppose we have a list of entered dates, and some of them have passed, if we want to pick them up how can we do? This article will help you to solve this problem, we provide two ways to mark overdue dates, you can choose one of them to determine if dates have passed or not.

Precondition:

Create a list with dates. These dates are created by random. Current date is 7/30/2020.

How to Determine If Entered Date Has Passed or Not 1

Method 1: Determine If Date Has Passed or Not by Formula


Step 1: In B2 enter the formula =IF(A2<TODAY(),”Passed”,”Not Passed”). This formula is easy to understand, if entered date in A column is earlier than today, then IF function returns ‘Passed’, otherwise it returns ‘Not Passed’.

How to Determine If Entered Date Has Passed or Not 2

Step 2: Drag fill handle down till B7. Then B2 to B7 are filled with Passed or Not Passed depends on IF function.

How to Determine If Entered Date Has Passed or Not 3

After above two steps, passed dates are separated, if you want to mark them with color, you can create a filter on B column and select Passed as criteria, then only passed dates are displayed, not passed dates are hidden. Then you can fill color for the visible cells.

Method 2: Determine If Date Has Passed or Not by Conditional Formatting Function


Step 1: Select the date list. Click Home in ribbon, then click Conditional Formatting in Styles group, select New Rule in menu.

How to Determine If Entered Date Has Passed or Not 4

Step 2: On New Formatting Rule dialog, select the last rule type: Format only cells that contain.

How to Determine If Entered Date Has Passed or Not 5

Step 3: In Edit the Rule description section, for Format only cells with, select Cell Value in the first dropdown list, select Less than in the second dropdown list, enter =TODAY() in textbox.

How to Determine If Entered Date Has Passed or Not 6

Step 4: Click Format button in Preview section. Verify that Format Cells window is displayed.

How to Determine If Entered Date Has Passed or Not 7

Step 5: Click Fill tab, then select a color as background color. For example, select yellow, then click OK.

Step 6: After above step, we go back to New Formatting Rule window. You can see that in Preview section, cell is filled with yellow. Click OK.

How to Determine If Entered Date Has Passed or Not 8

Step 7: Then you will find passed dates in the list are filled with yellow properly.

How to Determine If Entered Date Has Passed or Not 9

 

 

Related Posts

Excel Structure Reference

This tutorial introduces the basics of structured referencing in Excel and shows you how to use structured referencing in a table with examples. When you use formulas that reference tables, whether the formula references a part of the table or ...

Excel/Google Sheets: Full Row Reference

Excel or Google sheets supports both full row references and full column references. This article will talk about the usage of full row references. Full Row reference is another cell reference in Excel or Google Sheets, which is used to ...

Excel/Google Sheets: Full Column Reference

Full column reference is another cell reference in Excel or Google Sheets, which is used to reference the entire column, for example, if you want to reference the entire column A, you can use the following reference format A: A. ...

Excel/Google Sheets: Expanding Reference

An expanding reference is a reference type in Excel and Google worksheets that extends the range of a cell when a formula is copied to the cell below or to the right. In this article, we will explain how to ...

Excel/Google Sheets: Mixed Reference

In Microsoft Excel Spreadsheet or Google sheets, there is another cell reference, mixed references, where part of the reference is absolute, part of the relative. This article will describe how to use mixed references through specific examples. Mixed Reference When ...

Sidebar