SOLVED

Conditional Formatting with multiple date conditions

Copper Contributor

Hi All, 

 

If anybody can help me with the formulas for conditional formatting or anything else that would work. I am trying to format as:

if there is a date closed ($I), the row to remain white.

if there is no date closed ($I) and the due date($H) is greater than today($k$7), the row to turn blue

if there is no date closed ($I) and the due date ($H) is lesser than today ($k$7), the row to turn red

 

I have been trying to use some formulas from the internet search but doesnot seem to work. Any help would be appreciated. 

 

Thanks! 

7 Replies

@malihassan 

Select the rows that you want to format.

In the following, I will assume that the active cell in the selection is in row 11. If it is in another row, adjust the formulas accordingly.

 

On the Home tab of the ribbon, select Conditional Formatting > New Rule...

Select 'Use a formula to determine which cells to format'.

Enter the formula =AND($I11="",$H11>$K$7)

Click Format...

Activate the Fill tab.

Select blue.

Click OK, then click OK again.

 

Repeat the above steps, but with the formula =AND($I11="",$H11<$K$7) and blue as fill color.

@Hans Vogelaar 

 

Thanks! Tried doing that but nothing happens! :(

 

malihassan_0-1608853261924.png

 

@malihassan 

Could you attach a sample workbook without sensitive data? Thanks in advance.

Hi @malihassan 

 

Follow these steps:

1- Selcect all the rows ( in your case seems 4 row),

2- From the home tab --> on the style group -->Conditional formatting --> New rule

3- choose Use a formula to determine which cells to format --> write this formula =AND($I10="",$H10>$K$6) 

4-  Click format button --> choose the color blue

5- Click  OK --> OK

 

Repeat the same step for the second condition and write this formula:   =AND($I10="",$H10<$K$6)

 

Please find  ready worksheet attached

formatting1.png

@Hans Vogelaar 

 

Sorry been out. There you go. Been trying something similar but don't get the expected results. 

 

 

best response confirmed by malihassan (Copper Contributor)
Solution

@malihassan 

See if this does what you want.

@Hans Vogelaar 

 

Thanks! It does! Much appreciated

1 best response

Accepted Solutions
best response confirmed by malihassan (Copper Contributor)
Solution

@malihassan 

See if this does what you want.

View solution in original post