Conditional formatting cells based on current year

Manexcel

Board Regular
Joined
Dec 28, 2015
Messages
127
Office Version
  1. 365
Platform
  1. Windows
I have a row of columns (c3: j3) with year dates 2023 to 2030. Formatted as yyyy.

Under each year column, say 2023 (c3), there are several cells which I would only like highlighted in, say yellow. Including the year, say 2023

As each year progresses to 2024 (d3) I would like only column d3 to be highlighted in yellow etc.
Taskc3d3e3j3
2023202420252030
Task1abc
Task 2abc
Task10abc


I don't believe there is a formula within conditional formatting for the current year so am looking for a formula that will overcome.

Thank you for your time and consideration.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Do this:

1. Select the range C3:J13
2. Go to Conditional Formatting and click "New Rule"
3. Select the "Use a formula to determine which cells to format" option
4. Enter the following formula:
Excel Formula:
=AND(YEAR(TODAY())=C$3,C3<>"")
5. Select your desired formatting option
6. Click "OK"

This will format all the cells in the column with the current year that are not blank.
 
Upvote 0
Solution
Thank you so much for the quick response. Very much appreciated. My problem is resolved.:)
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,689
Members
449,117
Latest member
Aaagu

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