PC Review


Reply
Thread Tools Rate Thread

Colour change by date

 
 
=?Utf-8?B?Sm9jaw==?=
Guest
Posts: n/a
 
      5th Oct 2007
I have searched for an answer to this but haven't managed to nail it:
I wish to colour cells containing future dates within 30 days of TODAY() red.
This bit is straightforward, but I wish to ignore all dates which have
passed (ie yesterday and beyond)
How can I modify the CF line =D7-TODAY()<30 to do this? Or would code be
better?
Ideally, I'd like something like
Between 0 and 30 days = red, 31 - 60 days amber, 61 - 90 days = green.

Thanks in advance
--
Traa Dy Liooar

Jock
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      5th Oct 2007
You need to add an and

=and(D7-TODAY()<30, D7-TODAY() >0)

"Jock" wrote:

> I have searched for an answer to this but haven't managed to nail it:
> I wish to colour cells containing future dates within 30 days of TODAY() red.
> This bit is straightforward, but I wish to ignore all dates which have
> passed (ie yesterday and beyond)
> How can I modify the CF line =D7-TODAY()<30 to do this? Or would code be
> better?
> Ideally, I'd like something like
> Between 0 and 30 days = red, 31 - 60 days amber, 61 - 90 days = green.
>
> Thanks in advance
> --
> Traa Dy Liooar
>
> Jock

 
Reply With Quote
 
=?Utf-8?B?Sm9jaw==?=
Guest
Posts: n/a
 
      5th Oct 2007
Nice and simple
Thanks Joel
--
Traa Dy Liooar

Jock


"Joel" wrote:

> You need to add an and
>
> =and(D7-TODAY()<30, D7-TODAY() >0)
>
> "Jock" wrote:
>
> > I have searched for an answer to this but haven't managed to nail it:
> > I wish to colour cells containing future dates within 30 days of TODAY() red.
> > This bit is straightforward, but I wish to ignore all dates which have
> > passed (ie yesterday and beyond)
> > How can I modify the CF line =D7-TODAY()<30 to do this? Or would code be
> > better?
> > Ideally, I'd like something like
> > Between 0 and 30 days = red, 31 - 60 days amber, 61 - 90 days = green.
> >
> > Thanks in advance
> > --
> > Traa Dy Liooar
> >
> > Jock

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
change cell colour according to date..... RichLive Microsoft Excel Worksheet Functions 2 12th Jun 2009 03:54 PM
How do I change the colour of the bar at top of today's date? =?Utf-8?B?Q2hvcHM=?= Microsoft Outlook Calendar 1 30th Jul 2007 02:52 AM
Change Colour is Date Surpassed That's Confidential Microsoft Excel Misc 2 10th May 2004 04:12 PM
cell to change colour at given date - how to Tobit Microsoft Excel Worksheet Functions 4 17th Sep 2003 12:20 PM
cell to change colour at given date - how to Tobit Microsoft Excel Misc 4 17th Sep 2003 12:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:26 PM.