Highlight range of column cells in color, based on date on another cell

KSKWin

New Member
Joined
May 7, 2023
Messages
10
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I have an Excel with Column as Date, Day and other Text columns. Based on date (say current date) the range of columns should be highlighted in color.


Thanks
Kskwin
Color_Book.jpg
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Maybe with conditional formatting:
Book1
ABCD
1DateNum 1Num 2Num 3
223/06/202337602
324/06/2023466964
425/06/202388689
526/06/2023384325
627/06/20235522100
728/06/202316634
829/06/20232488
930/06/2023617817
1001/07/202334874
1102/07/202394465
1203/07/2023108799
1304/07/202377540
1405/07/2023108771
1506/07/202366918
1607/07/202348114
1708/07/2023838913
1809/07/2023473100
1910/07/2023662868
2011/07/2023244260
2112/07/202360442
2213/07/202322556
2314/07/2023883136
2415/07/20231001547
Sheet2
Cell Formulas
RangeFormula
B2:D24B2=RANDARRAY(23,3,1,100,TRUE)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D24Expression=$A2=TODAY()textNO
 
Upvote 0
Solution
Maybe with conditional formatting:
Book1
ABCD
1DateNum 1Num 2Num 3
223/06/202337602
324/06/2023466964
425/06/202388689
526/06/2023384325
627/06/20235522100
728/06/202316634
829/06/20232488
930/06/2023617817
1001/07/202334874
1102/07/202394465
1203/07/2023108799
1304/07/202377540
1405/07/2023108771
1506/07/202366918
1607/07/202348114
1708/07/2023838913
1809/07/2023473100
1910/07/2023662868
2011/07/2023244260
2112/07/202360442
2213/07/202322556
2314/07/2023883136
2415/07/20231001547
Sheet2
Cell Formulas
RangeFormula
B2:D24B2=RANDARRAY(23,3,1,100,TRUE)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D24Expression=$A2=TODAY()textNO
Thank you very much. Awesome.
 
Upvote 0
Thank you very much. Awesome.
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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