Conditional formatting

Muthukrishnan V

Board Regular
Joined
May 29, 2008
Messages
179
Office Version
365
Platform
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,
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
44,781
Office Version
365
Platform
Windows
Select E5:E8 & use this formula
=E5=MIN(IF($E$5:$E$8>TODAY(),$E$5:$E$8))
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,585
Office Version
2007
Platform
Windows
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.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
44,781
Office Version
365
Platform
Windows

ADVERTISEMENT

You're welcome & thanks for the feedback.
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,585
Office Version
2007
Platform
Windows
I'm glad to help you. Thanks for the feedback.
 

Muthukrishnan V

Board Regular
Joined
May 29, 2008
Messages
179
Office Version
365
Platform
Windows
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
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,419
Messages
5,511,245
Members
408,835
Latest member
janetjordan

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top