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

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar