Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Conditional Formatting, Date Ranges and Rows

Hello,
I have scoured the newsgroups and searched quite a few posts for what I
would like to do. We will use cell R3 as an example. I have Office 2007 and I
would like to do the following:

Highlight the row green if the date in R3 is less than 30 days old.
Highlight the row yellow if the date in R3 is more than 30 but less than 60
days
Highlight the row red if the date in R3 is more than 60 days old

I have tried a variety of methods, but I cannot get any one to work.

Please help!

thanks so much.

M
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Conditional Formatting, Date Ranges and Rows

Select the entire row.
Conditional format,
formula 1:
=TODAY()<=$R3+30

formula 2:
=AND(TODAY()$R3+30,TODAY()<=$R3+60)

formula 3:
=TODAY()$R3+60

--
Best Regards,

Luke M
"chickalina" wrote in message
...
Hello,
I have scoured the newsgroups and searched quite a few posts for what I
would like to do. We will use cell R3 as an example. I have Office 2007
and I
would like to do the following:

Highlight the row green if the date in R3 is less than 30 days old.
Highlight the row yellow if the date in R3 is more than 30 but less than
60
days
Highlight the row red if the date in R3 is more than 60 days old

I have tried a variety of methods, but I cannot get any one to work.

Please help!

thanks so much.

M



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 66
Default Conditional Formatting, Date Ranges and Rows

Assuming it's row 3 you want to highlight (i.e. the row with the date in it),
try these steps:

1. Format R3 to date, and type a date in the cell.

2. Click in cell R3 then click FormatConditional Formatting.

3. Under Condition 1 select 'Formula Is', then type this formula in the next
box
=DATEDIF($R$3,TODAY(),"D")<30

4. Click the Format button, then the Patterns tab, select the green color,
click OK.

5. Back at the Conditional Formatting dialogue, click Add and under
Condition 2 select 'Formula Is', then type this formula in the next box
=AND(DATEDIF($R$3,TODAY(),"D")=30,DATEDIF($R$3,TO DAY(),"D")<60)

6. Click the Format button, then the Patterns tab, select the yellow color,
click OK.

7. Back at the Conditional Formatting dialogue, click Add and under
Condition 3 select 'Formula Is', then type this formula in the next box
=DATEDIF($R$3,TODAY(),"D")=60

8. Click the Format button, then the Patterns tab, select the red color,
click OK twice.

9. Copy cell R3 (Ctrl + C), then highlight row 3 (by clicking the row
number), right click, select Paste Special, then Formats, then OK.

That should shade the cells in row 3 according to your conditions. Note I've
amended the conditions slightly: less than 30 is green; 30 or more but less
than 60 is yellow; 60 or more is red.

Hope that works for you.

Regards,

Tom



"chickalina" wrote:

Hello,
I have scoured the newsgroups and searched quite a few posts for what I
would like to do. We will use cell R3 as an example. I have Office 2007 and I
would like to do the following:

Highlight the row green if the date in R3 is less than 30 days old.
Highlight the row yellow if the date in R3 is more than 30 but less than 60
days
Highlight the row red if the date in R3 is more than 60 days old

I have tried a variety of methods, but I cannot get any one to work.

Please help!

thanks so much.

M

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
Sum of named ranges conditional to date? SleazyBreezy Excel Worksheet Functions 25 June 24th 09 10:46 AM
Formatting based on date ranges Rodney Excel Discussion (Misc queries) 2 July 20th 08 01:04 AM
Conditional formatting date ranges arkmpr Excel Worksheet Functions 1 January 19th 07 08:24 PM
Conditional Formatting - date ranges Angela Excel Discussion (Misc queries) 3 November 2nd 05 03:36 PM
Ranges within Conditional Formatting Ryno Excel Discussion (Misc queries) 4 December 14th 04 12:47 AM


All times are GMT +1. The time now is 12:05 AM.

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

About Us

"It's about Microsoft Excel"