Skip to playerSkip to main contentSkip to footer
  • 5/1/2025
Conditional formatting based on date difference in Excel is a quick and easy way to visually analyze your data. With just a few clicks, you can highlight cells that fall within a certain date range, helping you identify trends and outliers in your data. This simple but powerful Excel trick can save you time and improve your decision-making abilities. In our YouTube video, we'll show you step-by-step how to use conditional formatting to highlight cells based on date difference, so you can enhance your Excel skills and become a more efficient data analyst.


Highlight Expired Date (only)
1) Select the range of cells
2) Home --- Conditional Formatting -- New Rule
3) Use a formula to determine which cells to format
4) =AND(C2-A20)
5) Format...
6) Fill tab
7) OK
8) OK

Highlight The Whole Dang Expired Event
1) Select the whole table
2) Home --- Conditional Formatting -- New Rule
3) Use a formula to determine which cells to format
4) =AND($C2-$A20)
5) Format...
6) Fill tab
7) OK
8) OK

REDDIT Question
https://www.reddit.com/r/ExcelTips/comments/1190qm9/conditional_formattingformula_to_flag_a_date/

#conditionalformatting

excel conditional formatting based on date more than 30 days,excel conditional formatting based on date range in another cell,excel conditional formatting based on date overdue,excel conditional formatting based on date and text in another cell,excel conditional formatting based on date older than 1 year,excel conditional formatting based on date before today,excel conditional formatting dates within 90 days,excel conditional formatting date less than 6 months from today,
excel conditional formatting based on date difference,excel conditional formatting based on date in another cell,excel conditional formatting difference between two dates,excel conditional formatting based on date,
Transcript
00:00Recently there was a question about highlighting the expiry date if your event date is less
00:05than 31 days.
00:06So this is what the table looks like, this is your event date, A, and column C is your
00:10expiry date, and this is what they want to highlight.
00:13So select the expiry date, make sure you're in Home, Style, Conditional Formatting, New
00:18Rule.
00:19In here, Use Formula.
00:20The formula you'll be using is this.
00:22If you want more than 31 days, change this to whatever you want, 60 days maybe.
00:26Formatting, make sure you're on Fill tab.
00:29And then I'm going to highlight with red, and this is how you do it.
00:32And for some reason, if you want to change this to that, the highlight is gone.
00:35Let me undo everything.
00:36A more practical approach would be to highlight the whole row like this.
00:40So what you do is that you select all the table itself.
00:43Again go Conditional Formatting, New Rule, Use Formula, and the formula you'll be using
00:47is this.
00:48Again, now go Format.
00:50I'm going to select orange here, click OK, OK, and there you go.
00:58See you next time.
00:59So let me change .
01:00Alright, now, so see here.
01:02Also, what do you think watches?
01:05I think you need the name we're doing so.
01:07Have you?
01:08See this?
01:09There we go.

Recommended