Conditional Formatting issue beginning with CY 2020 dates

gmaboing

New Member
Joined
Mar 24, 2010
Messages
33
Hello,

I have a large spreadsheet that I use to find patients that have had a procedure outside of their admission and discharge dates.
The spreadsheet has worked perfectly until 1/1/2020.

The conditional formatting formula I am using is:
Cell Value ---> not between ---> J7 ---> and ---> D7

I am using that formula for cells ---> $BC$7:$BC$1048576

Snap 2020-01-14 at 14.01.43.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I am assuming that all your dates are actually entered as "Dates" and not "Text" (though that is not clear, as most dates entered are right-justifed and not left-justified, by default).

Do any of your dates have time components that are being hidden (including the entries in J7 and D7)?
You can see these if you change the format of your cells to a format that shows time along with the dates.
Even if you hide these from view by the format you choose, these will still be considered in your formulas and Conditional Formatting, unless you explicitly account for them.
 
Upvote 0
I'd been bringing them in as text because I need to keep the 10 characters in the date field.

But I guess I need to bring them in as date in order for the conditional formatting to work, then i'll need to reformat them after I've identified the patients. Is that what you're thinking?
 
Upvote 0
When I bring them in as date, the formatting works. YAY!!!

I'll work on the reformatting part--that shouldn't take too long to fix.
 
Upvote 0
You are welcome.

Yes, you cannot do the date comparisons in the Conditonal Formatting if they are text and not dates.
Enter as dates and change the format to your liking, as you have done.
 
Upvote 0

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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