How to Use Formula for Past Due Date in Excel (3 Methods)

In times of data sorting, we sometimes face the necessity of finding past due date. From this article, you will know about Excel formula for past due date.

For clarification, I have used a dataset containing data titled Project Name and Deadline.

Excel Formula for Past Due Date


How to Use Formula for Past Due Date in Excel: 3 Ways

1. Using Excel TODAY Function in Conditional Formatting for Past Due Date

Use of TODAY Function is a very efficient way to separate for Past Due Date.

Steps:

  • Select all the cells containing dates. Here, I have selected cells C5:C11.
  • Then, choose Home from the ribbon.
  • Select Conditional Formatting and New Rule sequentially.

A Dialogue box will appear.

  • Select Format only cells that contain from Select a Rule Type.
  • Next, From the Format only cells with, select Cell Value, less than and =TODAY() continuously.
  • Afterward, select Format. 

Excel Formula for Past Due Date

Another dialogue box will appear named Format Cells.

  • Select the Fill tab and choose a color.
  • Press OK.

  • Press OK again.

Excel Formula for Past Due Date

Finally, the formula will be applied and the past due date will be identified.

Read More: How to Pull Data from a Date Range in Excel


2. Applying Excel IF & ISBLANK Functions for Past Due Date

We can also apply IF Function , TODAY function and ISBLANK function to create a formula for  past due date.

Steps:

  • Select a cell and input the formula.
  • Here, I have selected D5 for the application of the formula.

The Formula here is:

=IF(ISBLANK(C5),"", IF(C5<TODAY(),"Delayed","On Time"))

Where, ISBLANK Function is used to check if the selected cell is blank or not. A condition is applied using IF Function which gives Delayed output for value less than today compared with the selected cell value and On Time output for the rest.

Excel Formula for Past Due Date

  • Press ENTER.

Excel Formula for Past Due Date


Similar Readings


3. Employing Excel Combined Functions for Past Due Date

We can also employ a formula that contains both IF, TODAY & MAX Function for past due date.

Steps:

  • Select a cell and write the formula.
  • Here, type the following formula in cell D5.
=IF(MAX(0,TODAY()-C5)=0,"On Schedule","Due")

Where MAX Function returns the largest value and ignores the empty cells. A condition is applied here using IF Function where differentiating values between today’s date and the date mentioned in the cell, it will give output On Schedule or Due.

  • Press ENTER.

Excel Formula for Past Due Date

  • For the AutoFill, use Fill Handle.


Practice Section

You can practice here for more efficiency.

Excel Formula for Past Due Date


Download Practice Workbook


Conclusion

Every Excel formula for past due date is shown here is quite easily functional and effective. Here, you can give your feedback or further queries in the comment section.


Related Articles


<< Go Back to Date Range | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Naimul Hasan Arif
Naimul Hasan Arif

Naimul Hasan Arif, a BUET graduate in Naval Architecture and Marine Engineering, has been contributing to the ExcelDemy project for nearly two years. Currently serving as an Excel and VBA Content Developer, Arif has written more than 120 articles and has also provided user support through comments His expertise lies in Microsoft Office Suite, VBA and he thrives on learning new aspects of data analysis. Arif's dedication to the ExcelDemy project is reflected in his consistent contributions and... Read Full Bio

4 Comments
  1. Dear Sir,
    Hope you are doing well can you help me?
    Please tell me formula What can i use for alert in excel.
    1) How do I create a pop up alert in Excel?
    2) How do I blink or flash text of a specific cell in Excel?

    • Dear ATEEB,
      Thank you for reaching out. I’m here to help you with your Excel queries. Regarding your questions about creating alerts and blinking or flashing text in Excel, please find the answers below:
      How to create a pop-up alert in Excel

      To create a pop-up alert in Excel, you can use a combination of VBA (Visual Basic for Applications) code and Excel’s event triggers. Here’s an example code snippet that you can use:

      Copy and paste this code into the sheet module (e.g., press Alt+F11 to open the Visual Basic Editor, find the relevant sheet in the Project Explorer, and double-click on it to open its code window). Replace “$A$1” with the cell reference that should trigger the alert.

      Private Sub Worksheet_Change(ByVal Target As Range)
          If Target.Address = "$A$1" Then ' Change the cell reference to the desired cell triggering the alert
              MsgBox "Alert: Cell A1 has been changed!" ' Customize the alert message as needed
          End If
      End Sub

      Customize the alert message within the MsgBox function to suit your requirements. After changing cell A1, the alert message will appear.

      How to blink or flash text of a specific cell in Excel

      Excel does not provide a built-in feature to directly make text blink or flash. However, you can achieve a similar effect by using VBA code to toggle the cell’s font color.
      In the following code, we’re toggling the font color between red and black for the specified cell (in this case, cell A1). Adjust the cell reference and customize the number of blinks and the timing (in seconds) to meet your specific requirements.
      Here’s an example code snippet that demonstrates this:

      Sub BlinkText()
      Dim rng As Range
      Set rng = Range("A1") ' Change the cell reference to the desired cell to blink
      For i = 1 To 5 ' Number of times to blink
      rng.Font.Color = RGB(255, 0, 0) ' Change font color to red
      Application.Wait Now + TimeValue("00:00:01") ' Wait for 1 second
      rng.Font.Color = RGB(0, 0, 0) ' Change font color back to black
      Application.Wait Now + TimeValue("00:00:01") ' Wait for 1 second
      Next i
      End Sub
      
      I hope these solutions address your needs. If you have any further questions or need additional assistance, please feel free to ask.
      Best regards
      Al Ikram Amit
      Team ExcelDemy
  2. I HAVE INVOICE DATE. I WANT TO CALCULATE THE DUE DATE AS 45 DAYS FROM THE INVOICE DATE AND WANT TO MENTION WHETHER IT IS OVERDUE OR NOT IN a SEPERATE COLUMN

    • Reply Lutfor Rahman Shimanto
      Lutfor Rahman Shimanto Feb 22, 2024 at 6:00 PM

      Hi Sandhya,

      You can add 45 days with the invoice date and use it as a replacement for TODAY() in any of the formulas from above. Or, you can use a simple IF formula.
      Here is an example, the invoice date is in cell C13. Use the formula: =IF(C5>$C$13+45,"Overdue","Not Overdue")

      Make sure to use the correct reference style if you intend to drag the fill handle.

      Regards
      Abrar-ur-Rahman Niloy
      ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo