Conditional Formatting - Date

justfacebook564

New Member
Joined
Apr 6, 2020
Messages
1
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hi all,

I tried to use the Conditional Formatting function to filter out the dates that occurred before 2020, my column contains cells along the lines of 11/01/2019, 21/09/2019, 21/11/2020, 01/05/2020 etc. As usual, I followed the HOME > Conditional Formatting > Highlight Cells Rules > Text that Contains steps, and typed in 2019, as I want to find the cells containing my keyword, that is 2019 here, and make adjustments- however, it simply did not work, the cells containing 2019 did not get highlighted automatically by the system.

May I know what went wrong?

Any help would be greatly appreciated.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Dates are stored in Excel as number of days from ( i think 1/1/1900), so e.g. today is stored as 43,927, it therefore does not contain 2019
 
Upvote 0
If your dates are in col A then In another column type
=year(A1)
copy down & use that to highlight
 
Upvote 0
You could also use the formula as below

Screenshot 2020-04-06 at 17.38.55.png
 
Upvote 0
You can also format your cells as text. and the enter the following formula in conditional formatting: =Right(A1, 4)="2019". What would work best so that you do not have an extra column, Put the following formula into you conditional formatting:
VBA Code:
=YEAR($A1)=2019
 
Upvote 0
He also uses Mac---my favorite!
 
Upvote 0

Forum statistics

Threads
1,215,622
Messages
6,125,886
Members
449,269
Latest member
GBCOACW

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