# Excel Formula If Date Is Less Than Today (4 Examples)

Get FREE Advanced Excel Exercises with Solutions!

Need to learn how to use Excel formula if a date is less than today? Excel provides us with great approaches to use date formatting depending on different conditions. Here, we will take you through 4 easy and convenient methods on how to use the Excel formula if a date is less than today.

## How to Use Excel Formula to Determine If Date Is Less Than Today: 4 Handy Methods

For ease of understanding, letâ€™s say we have a Student-wise Submission Dates list of a certain institution. This dataset contains the First Names, Last Names, and Submission Dates in columns B, C, and D respectively.

Now, weâ€™ll use 4 different approaches to check if the dates are less than todayâ€™s date. Letâ€™s go through them one by one.
Here, we have used Microsoft Excel 365 version, you may use any other version according to your convenience.

### 1. Using Excel Formula to Determine If Date Is Less Than Today

In our first method, weâ€™ll use a quite easy Excel formula to check if the date is less than today. So, follow these simple steps below.

ðŸ“Œ Steps:

• At the very beginning, create a new column in Column E. This new column sits just beside the Submission Date column.
• Then, give it a name. In this case, we named it Less than today. Because here weâ€™ll check if its adjacent columnâ€™s value is less than today or not.

• At this moment, select cell E5.
• After that, write down the following formula.
`=D5<TODAY()`

Here, D5 represents the cell reference of the Submission Date of the first student Harry Albert. And the TODAY function returns todayâ€™s date only. Here, weâ€™re checking whether the date in cell D5 is less than the date of today or not.

• Later, press ENTER.

• Now, bring the cursor to the bottom right corner of cell E5. Thus, itâ€™ll look like a plus (+) sign. Itâ€™s the Fill Handle tool.
• Then, double-click on it.

• Automatically, it copies the formula to the lower cells. Hence, we also get the results in the remaining cells also.

### 2. Utilizing IF Function to Determine If Date Is Less Than Today in Excel

As with Excel, there are multiple ways of doing the same task. Here, weâ€™ll use the IF function to do the same job. In this approach, weâ€™ll find out whether the assignment is submitted or not on todayâ€™s date. Itâ€™s simple & easy, just follow along.

ðŸ“Œ Steps:

• At first, select cell E5.
• Then, paste the following formula into the Formula Bar.
`=IF(D5<TODAY(),"Submitted","Not Submitted")`

Here, the IF function performs a logical test which is the value in cell D5 is less than todayâ€™s date. If the condition is true, then itâ€™ll show Submitted in cell E5. Otherwise, it shows Not Submitted in the cell.

• Lastly, press the ENTER key.

### 3. Applying Conditional Formatting

If you are curious to learn Conditional Formatting in Excel, this method may come in handy. Letâ€™s explore the method step by step.

ðŸ“Œ Steps:

• Firstly, select cells in the D5:D14 range.
• Secondly, go to the Home tab.
• Thirdly, click on the Conditional Formatting drop-down on the Styles group.
• Fourthly, select New Rule from the list.

• Instantly, the New Formatting Rule dialog box opens.
• Here, choose Use a formula to determine which cells to format under the Select a Rule Type section.
• Then, weâ€™ve to make some edits in the Edit the Rule Description section.
• Later, write down =D5<TODAY( ) in the Format values where this formula is true box.
• After that, select the Format button.

• As a result, the Format Cells wizard opens.
• Then, move to the Fill tab.
• Later, choose Light Green color from the available options.
• Next, click OK.

• Again, it returns us to the New Formatting Rule dialog box.
• Here, click Ok again.

• Thus, the dates less than today get highlighted with our preferred color.

### 4. Employing VBA Code to Determine If Date Is Less Than Today

Another alternative is to employ the VBA code. Although using formulas is a quick way of editing data, it can be difficult to interpret. Furthermore, if you often need to do the task in a different way, then you may consider the VBA code below. So letâ€™s begin.

ðŸ“Œ Steps:

• Primarily, construct a new column named Status like before.

• Secondarily, go to the Developer tab.
• Then, select Visual Basic on the Code group.
• Alternatively, press ALT + F11 to do the same task.

• Instantly, the Microsoft Visual Basic for Applications window opens.
• Afterward, move to the Insert tab.
• Later, select Module from the options.

• Immediately, it opens the Code Module.
• Then, write down the following code in the Module.
``````Sub tst_today()
Dim x As Integer
For x = 5 To 14
If Cells(x, 4).Value < Date Then
Cells(x, 5).Value = "Submitted"
Else
Cells(x, 5).Value = "Not Submitted"
End If
Next x
End Sub``````

• Lastly, select the Run icon or press F5 on the keyboard.

• Thus, the Status column gets filled automatically with the correct result.

## How to Check Whether the Date Is Less than Today and within 30 Days

If you want to learn to check whether the date is less than today and within 30 days, then this section may come in handy. So, without further delay, letâ€™s see how we do it. Just track the following steps carefully.

ðŸ“Œ Steps:

• First of all, select cells in the D5:D14 range.
• Then, click on the Conditional Formatting drop-down on the Styles group.
• After that, select New Rule from the list.

• Immediately, the New Formatting Rule dialog box opens.
• Here, choose Format only cells that contain under the Select a Rule Type section.
• Then, weâ€™ve to make some edits in the Edit the Rule Description section.
• Hence, select between in the 2nd box of Format only cells with.
• Later, write down =TODAY( )-1 in the 3rd box and =TODAY( )-30 in the 4th box.
• After that, select the Format button.

• Suddenly, the Format Cells wizard opens.
• Then, proceed to the Fill tab.
• Later, choose Yellow color from the available options.
• Next, click OK.

• Similarly, it returns us to the New Formatting Rule dialog box.
• Then, click Ok again.

• Thus, it highlights the cells containing dates less than todayâ€™s date and within 30 days from today.

## Practice Section

For doing practice by yourself we have provided a Practice section like below in each sheet on the right side. Please do it by yourself.

You may download the following Excel workbook for better understanding and practice yourself.

## Conclusion

This article provides easy and brief solutions to use Excel formulas to determine if the date is less than today. Donâ€™t forget to download the Practice file. Thank you for reading this article, we hope this was helpful. Please let us know in the comment section if you have any queries or suggestions.

## Related Articles

Shahriar Abrar Rafid

Welcome to my profile! I'm thrilled to have you here. As a dedicated Naval Architecture and Marine Engineering graduate from the prestigious Bangladesh University of Engineering & Technology, I am deeply immersed in the realm of research and analysis. My current focus revolves around Microsoft Excel, where I engage in extensive work and conduct insightful research. Through this platform, I share articles that shed light on the vast possibilities of Excel. I'm also an avid reader and passionate traveler, constantly seeking knowledge and implementing it effectively in my work. Join me on this exciting journey as we explore Excel and optimize our productivity together.

We will be happy to hear your thoughts

Advanced Excel Exercises with Solutions PDF