A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting, Date Ranges and Rows



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 03:38 PM posted to microsoft.public.excel.misc
chickalina
external usenet poster
 
Posts: 194
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  
Old June 2nd, 2010, 08:53 PM posted to microsoft.public.excel.misc
Luke M[_4_]
external usenet poster
 
Posts: 451
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  
Old June 2nd, 2010, 09:54 PM posted to microsoft.public.excel.misc
Tom-S[_2_]
external usenet poster
 
Posts: 68
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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:29 PM.


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