Conditional formatting is not working for less than TODAY(), only for greater than

alexpazolini

New Member
Joined
Sep 4, 2019
Messages
3
Conditional formatting does not apply to dates less than TODAY(), only greater than TODAY().
I have an IF statement with two VLOOKUPS inside. One of them outputs "Not Registered" if the cell looked is empty. The other, just copy the data that is on the other spreadsheet.
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; box-sizing: inherit; white-space: inherit;">=IF(VLOOKUP($A5,Table,@MATCH(D$3,Headings,0))=0,"Not
Registered",VLOOKUP($A5,Table,@MATCH(D$3,Headings,0)))
</code>Conditional formatting is set to:
<code style="margin: 0px; padding: 1px 5px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; vertical-align: baseline; box-sizing: inherit; background-color: rgb(239, 240, 241); white-space: pre-wrap;">cell values >= TODAY() are green cell values < TODAY() are red cell values = "Not Registered" are yellow</code>
I suspect the conditional formatting is not reading properly the date. Every date cell is formatted as long date.
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Phuoc

Active Member
Joined
Apr 29, 2016
Messages
257
Change to:

1. cell values +0 >= TODAY() are green

2. cell values + 0< TODAY() are red

3. cell values = "Not Registered" are yellow

Or:

1. cell values = "Not Registered" are yellow and check Stop If True

2. cell values < TODAY() are red and check Stop If True

3. cell values >= TODAY() are green
 

alexpazolini

New Member
Joined
Sep 4, 2019
Messages
3
Change to:

1. cell values +0 >= TODAY() are green

2. cell values + 0< TODAY() are red

3. cell values = "Not Registered" are yellow

Or:

1. cell values = "Not Registered" are yellow and check Stop If True

2. cell values < TODAY() are red and check Stop If True

3. cell values >= TODAY() are green

No success :(

https://photos.app.goo.gl/LdGzZPvdkz3KhoD68
 

Watch MrExcel Video

Forum statistics

Threads
1,119,097
Messages
5,576,108
Members
412,697
Latest member
ahem27
Top