Forum Discussion
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!
See if this does what you want.
7 Replies
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
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.
- malihassanCopper Contributor
Could you attach a sample workbook without sensitive data? Thanks in advance.