Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
B B is offline
external usenet poster
 
Posts: 17
Default conditional formatting for Column with Dates

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 is
=AND(INDIRECT(ADDRESS(ROW(),COLUMN()))<TODAY(),ISB LANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())),0,1) ))

Condition2: Formula is
=NOT(ISBLANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN( ))),0,1)))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default conditional formatting for Column with Dates

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!*


"B" wrote:

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 is
=AND(INDIRECT(ADDRESS(ROW(),COLUMN()))<TODAY(),ISB LANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())),0,1) ))

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
B B is offline
external usenet poster
 
Posts: 17
Default conditional formatting for Column with Dates

Thanks!

"Luke M" wrote:

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!*


"B" wrote:

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 is
=AND(INDIRECT(ADDRESS(ROW(),COLUMN()))<TODAY(),ISB LANK(OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())),0,1) ))

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dates and conditional formatting JH Excel Discussion (Misc queries) 3 July 25th 08 02:53 PM
Conditional formatting - Dates Duncan Excel Discussion (Misc queries) 2 July 23rd 07 10:50 PM
conditional formatting dates Phil Excel Discussion (Misc queries) 6 July 24th 05 09:18 PM
Conditional Formatting with Dates WLMPilot Excel Worksheet Functions 2 May 3rd 05 05:22 PM
Conditional Formatting for dates spacerocket Excel Worksheet Functions 2 November 4th 04 10:13 AM


All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"