Forum Discussion

rdshetty's avatar
rdshetty
Copper Contributor
Apr 09, 2024

Conditional formatting for date validity

I'm working with dates in Excel and would like to create an automated system for indicating their validity. Ideally, when a date is entered in cell B3, I'd like cell C3 to display "Valid" if the date...
  • NikolinoDE's avatar
    Apr 09, 2024

    rdshetty 

    You can achieve this using conditional formatting in Excel.

    Here is how you can set it up:

    1. Select cell C3.
    2. Go to the "Home" tab on the Excel ribbon.
    3. Click on "Conditional Formatting" in the "Styles" group.
    4. Choose "New Rule" from the dropdown menu.
    5. In the "New Formatting Rule" dialog box, select "Use a formula to determine which cells to format."
    6. Enter the following formulas for each condition:
    • For "Valid" (date is in the future):
      • Formula: =B3>TODAY()
      • Format: Choose a color or style to indicate validity.
    • For "Expired" (date is in the past):
      • Formula: =B3<TODAY()
      • Format: Choose a color or style to indicate expiration.
    • For "Expiring" (date is within the next 1 month):
      • Formula: =AND(B3>=TODAY(), B3<=TODAY()+30)
      • Format: Choose a color or style to indicate expiration.
    1. Click "OK" to apply the conditional formatting.
    2. Click "OK" again to close the Conditional Formatting Rules Manager.

    Now, whenever you enter a date in cell B3, cell C3 will display "Valid" if the date is in the future, "Expired" if it's in the past, and "Expiring" if it's expiring within the next 1 month. The formatting will update automatically based on the entered date. The text was created with the help of AI.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

     

    Was the answer useful? Mark as best response and like it!

    This will help all forum participants.

     

Resources