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.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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