Conditional Formatting - Formula

ChrisFoster

Board Regular
Joined
Jun 21, 2019
Messages
246
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a list of dates in column T, some cells are blank however. What I need is a formula to use in conditional formatting to allow me to highlight cells where the date in the cell is in the past from today's date (I'm not interested in dates in the future or today).

Please help.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can use the "format only cells that contain" option, then leave the first drop down as "cell value", but change the second to "Less than" and put =today() in the box

Then format it
 

Attachments

  • Past conditional.PNG
    Past conditional.PNG
    8.9 KB · Views: 3
Upvote 0
ChrisFoster, Good afternoon.

Select the cells desired at column T

Conditional Format >> Formula >> type: =$T1 < TODAY() >> ok

Tell us if it worked for you as desired.
I hope it helps.
 
Upvote 0
ChrisFoster, Good afternoon.

Select the cells desired at column T

Conditional Format >> Formula >> type: =$T1 < TODAY() >> ok

Tell us if it worked for you as desired.
I hope it helps.
I think if you do not want to format the blanks (like their question seems to suggest), then if you want to use a formula approach, you may need to amend the Conditional Formatting formula to:
Excel Formula:
=AND($T1<TODAY(),$T1>0)
 
Upvote 0
Solution
I think if you do not want to format the blanks (like their question seems to suggest), then if you want to use a formula approach, you may need to amend the Conditional Formatting formula to:
Excel Formula:
=AND($T1<TODAY(),$T1>0)
Thanks for everyone's suggestions - this is the only one that has worked as I'd need it. Thanks again.
 
Upvote 0
You are welcome.
Glad we could help!
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top