Change the colour of a cell

sjcaddy

New Member
Joined
Feb 1, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I want to change the colour of cells based on whether the start and end dates match the month (column)
 

Attachments

  • Screenshot 2022-02-02 130418.jpg
    Screenshot 2022-02-02 130418.jpg
    149.7 KB · Views: 6

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi,

Are you perhaps saying All the Cells marked with an "X" should be colored?
If so, CF, using formula

Book3.xlsx
EFGHI
2xxxxx
3xxx
Sheet974
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:I3Expression=E2="x"textNO
 
Upvote 0
Thank you, but I used the X just as an example, I will not have any content in the cell. So E2 should change colour as E1 falls between the start date Jan 22 (B2) and end date (C2)
 
Upvote 0
Thank you, but I used the X just as an example, I will not have any content in the cell. So E2 should change colour as E1 falls between the start date Jan 22 (B2) and end date (C2)

Then, do you want a formula that Will put an "x" in the relevant cells also ?
Or, are they Supposed to stay Blank ?
 
Upvote 0
Although, having a formula too would help me later when I will need it :)
 
Upvote 0
I would like them to stay Blank, thank you

Stay Blank, CF Only:

Book3.xlsx
BCDEFGHIJKLMNOPQRSTU
1Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22Jan-23Feb-23Mar-23Apr-23May-23
2Jan-22May-23
3Mar-22Dec-22
Sheet974 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:U3Expression=AND(E$1>=$B2,E$1<=$C2)textNO


Although, having a formula too would help me later when I will need it :)

With formula to mark "x", And CF:

Book3.xlsx
BCDEFGHIJKLMNOPQRSTU
1Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22Jan-23Feb-23Mar-23Apr-23May-23
2Jan-22May-23xxxxxxxxxxxxxxxxx
3Mar-22Dec-22  xxxxxxxxxx     
Sheet974
Cell Formulas
RangeFormula
E2:U3E2=IF(AND(E$1>=$B2,E$1<=$C2),"x","")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:U3Expression=E2="x"textNO
 
Upvote 0
Solution
Very much appreciated! Thanks, I have it working
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,203,069
Messages
6,053,351
Members
444,655
Latest member
didr

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