SOLVED

New Contributor

# Conditional Formatting with multiple date conditions

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

# Re: Conditional Formatting with multiple date conditions

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.

# Re: Conditional Formatting with multiple date conditions

Thanks! Tried doing that but nothing happens!

# Re: Conditional Formatting with multiple date conditions

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

# Re: Conditional Formatting with multiple date conditions

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)

# Re: Conditional Formatting with multiple date conditions

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

Best Response confirmed by malihassan (New Contributor)
Solution

# Re: Conditional Formatting with multiple date conditions

See if this does what you want.

# Re: Conditional Formatting with multiple date conditions

Thanks! It does! Much appreciated