conditional formatting for Column with Dates

B

B

Hi. I have two columns side by side with dates (due dates and completion
dates). I would like to make the cells in the first column "red" if the date
is < TODAY() (i.e., overdue) and the cell next to it is blank (i.e., not
completed). I would like to make the cells in the first column gray if the
cell next to it is not blank (i.e., completed). I tried to use the following
formula in the Conditional Formatting option to make the cells red and gray
if the formulas were true, but it did not seem to work. The cells turned
gray correctly, but the cells did not turn red if both the conditions below
were present. Can someone please give me some advice?

Condition1: Formula i
=AND(INDIRECT(ADDRESS(ROW(),COLUMN()))<TODAY(),ISBLANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())),0,1)))

Condition2: Formula is
=NOT(ISBLANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())),0,1)))
 
L

Luke M

Assuming due date is in column B
In B2, condition format condition 1
=AND(ISBLANK(C2),B2<TODAY())
This is your red condition

second condition
=IF(ISBLANK(C2),FALSE,TRUE)
Format grey

Note the lack of "$". Copy this cell, and Right-click, paste special
formatting to all the rest of the cells you want formatted.
 
B

B

Thanks!

Luke M said:
Assuming due date is in column B
In B2, condition format condition 1
=AND(ISBLANK(C2),B2<TODAY())
This is your red condition

second condition
=IF(ISBLANK(C2),FALSE,TRUE)
Format grey

Note the lack of "$". Copy this cell, and Right-click, paste special
formatting to all the rest of the cells you want formatted.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top