Conditional formatting

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
294
Office Version
  1. 365
Platform
  1. Windows
Microsoft Excel 2007

Column E contains date in dd-mm-yyyy format.
E5 : 13-01-2020
E6 : 21-05-2020
E7 : 05-02-2020
E8 : 13-10-2019
Today is 29-07-2019. The next upcoming date is 13-10-2019 which is in cell E8;
Is it possible, by a formula, to highlight cell E8 in some way, say by colour?
Thanks,
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Select range E5:E8
Conditional formatting
New Rule.
In the New Formatting Rule dialog box, click Use a formula to determine which cells to format.
Under Format values where this formula is true, type the formula:

Code:
=$E5=SMALL(IF(E5:E8 > TODAY(),E5:E8),1)}

Select Format, select color.
Press Ok.
Press Ok.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Select range E5:E8
Conditional formatting
New Rule.
In the New Formatting Rule dialog box, click Use a formula to determine which cells to format.
Under Format values where this formula is true, type the formula:

Code:
=$E5=SMALL(IF(E5:E8 > TODAY(),E5:E8),1)}

Select Format, select color.
Press Ok.
Press Ok.

I do not get result. Msg: Error in formula.
Please help
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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