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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Phuoc

Active Member
Joined
Apr 29, 2016
Messages
280
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
LdGzZPvdkz3KhoD68
 

Watch MrExcel Video

Forum statistics

Threads
1,122,263
Messages
5,595,166
Members
413,973
Latest member
leon1974mk

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
Top