Conditional Formatting - Dates

charcoop14

New Member
Joined
Jul 28, 2014
Messages
17
Hello,
I am trying to create some rules where the cells will change colors based on two dates and a running total Month by Year. See Below
Expiration DateCommencement DateJan 2023Feb 2023March 2023April 2023
01/31/202304/05/2023Colored Cell - Expiration DateColored Cell - Commencement Date
03/31/202304/05/2023Colored Cell - Expiration DateColored Cell - Commencement Date

As seen above, I have one date to match to a month for one column, and another date to match with a month for another column.

Thanks for any help.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
whats the running total ?
do you want just 1 colour
or different colours for
Expiration Date
Commencement Date
seem wrong way round to me


how about
Book6
ABCDEF
1Expiration DateCommencement DateJan-23Feb-23Mar-23Apr-23
21/31/234/5/23Colored Cell - Expiration DateColored Cell - Commencement Date
33/31/234/5/23Colored Cell - Expiration DateColored Cell - Commencement Date
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:F3Expression=AND($B2>=C$1, $B2<=EOMONTH(C$1,0))textNO
C2:F3Expression=AND($A2>=C$1, $A2<=EOMONTH(C$1,0))textNO
 
Last edited:
Upvote 0
I want to create different colors and even add an Icon (Colored ell with bold "E") for expiration for example. I will try the above formulas, thanks.
 
Upvote 0
how about using an IF
to get a Capital E for expiration and C for commencement

Book6
ABCDEF
1Expiration DateCommencement DateJan-23Feb-23Mar-23Apr-23
21/31/234/5/23E  C
33/31/234/5/23  EC
Sheet1
Cell Formulas
RangeFormula
C2:F3C2=IF(AND($A2>=C$1, $A2<=EOMONTH(C$1,0)),"E",IF(AND($B2>=C$1, $B2<=EOMONTH(C$1,0)),"C",""))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:F3Expression=AND($B2>=C$1, $B2<=EOMONTH(C$1,0))textNO
C2:F3Expression=AND($A2>=C$1, $A2<=EOMONTH(C$1,0))textNO
 
Upvote 0
Thanks!
What is there is a situation where both cells are same date, how do I make them a cell color of green fading into red?
 
Upvote 0
i dont know how to do that - as it requires a colour scale - which normally has something like numbers in the cell
can make it a different colour with EC in maybe
i'm assuming thats when A2 is in the same month as B2
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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