PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting - the date is between date A and date B

 
 
=?Utf-8?B?Tmlra2k=?=
Guest
Posts: n/a
 
      13th Sep 2007
Hi,

I have a spreadsheet that is for tracking work. I would like to have
conditional formatting so that if the date in column E is between todays date
and 4 weeks away then make it blue, if it is a date that is after 4 weeks
away then make it yellow but if it is in the past make it red.

Can this be done with conditional formatting or does it need vba? Also it
would be nice if the whole row changes colour even if just the condition is
on the date which is in column E - but if that can't be done then just the
cell is fine.

Thanks


 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      13th Sep 2007
Assume the dates start in E2, select all dates with E2 as the active date
use formula is

=E2<TODAY()

click format button and select red font or pattern, click OK, now click add
and use

=E2>TODAY()+28


click format button and select yellow font or pattern


click add

and use


=AND(E2>+TODAY(),E2<=TODAY()+28)


repeat and select blue font/pattern then click OK twice

You might want to change the boundaries if you want exclude/include a date
or so

(meaning changing >= to > etc)


--

Regards,

Peo Sjoblom

"Nikki" <(E-Mail Removed)> wrote in message
news:CB799836-2A40-4ACD-B26C-(E-Mail Removed)...
> Hi,
>
> I have a spreadsheet that is for tracking work. I would like to have
> conditional formatting so that if the date in column E is between todays
> date
> and 4 weeks away then make it blue, if it is a date that is after 4 weeks
> away then make it yellow but if it is in the past make it red.
>
> Can this be done with conditional formatting or does it need vba? Also it
> would be nice if the whole row changes colour even if just the condition
> is
> on the date which is in column E - but if that can't be done then just the
> cell is fine.
>
> Thanks
>
>



 
Reply With Quote
 
=?Utf-8?B?Tmlra2k=?=
Guest
Posts: n/a
 
      17th Sep 2007
Hi,

I don't quite understand sorry. Which parts am I supposed to highligt? I
had a list of dates with the first date in E2 and the last date in E10. I
highlighted the list and then did the conditioning formatting. Nothing has
changed tho so I must have done something wrong.

Any ideas?

Nikki

"Peo Sjoblom" wrote:

> Assume the dates start in E2, select all dates with E2 as the active date
> use formula is
>
> =E2<TODAY()
>
> click format button and select red font or pattern, click OK, now click add
> and use
>
> =E2>TODAY()+28
>
>
> click format button and select yellow font or pattern
>
>
> click add
>
> and use
>
>
> =AND(E2>+TODAY(),E2<=TODAY()+28)
>
>
> repeat and select blue font/pattern then click OK twice
>
> You might want to change the boundaries if you want exclude/include a date
> or so
>
> (meaning changing >= to > etc)
>
>
> --
>
> Regards,
>
> Peo Sjoblom
>
> "Nikki" <(E-Mail Removed)> wrote in message
> news:CB799836-2A40-4ACD-B26C-(E-Mail Removed)...
> > Hi,
> >
> > I have a spreadsheet that is for tracking work. I would like to have
> > conditional formatting so that if the date in column E is between todays
> > date
> > and 4 weeks away then make it blue, if it is a date that is after 4 weeks
> > away then make it yellow but if it is in the past make it red.
> >
> > Can this be done with conditional formatting or does it need vba? Also it
> > would be nice if the whole row changes colour even if just the condition
> > is
> > on the date which is in column E - but if that can't be done then just the
> > cell is fine.
> >
> > Thanks
> >
> >

>
>
>

 
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
PLEASE HELP! need conditional formatting related to date, blank cellsand today's date Michelle Microsoft Excel Discussion 16 29th Mar 2011 02:57 AM
conditional formatting for date field - text or date =?Utf-8?B?dHJldmk=?= Microsoft Access Form Coding 2 26th Jan 2007 09:37 PM
conditional formatting for cell date to equal today's date =?Utf-8?B?U2lzdGVyZWluc3RlaW4=?= Microsoft Excel Worksheet Functions 1 14th Nov 2006 09:24 PM
Link date to a table with Date Range (Eff Date and term date) =?Utf-8?B?S2V2aW4gUmVlZA==?= Microsoft Access 1 31st Aug 2006 04:23 PM
i have two date fileds Opend date Due date, can i set default on due date so, its always = to open date on my data entry form1 Urgent Mike Saifie Microsoft Access Form Coding 1 9th Mar 2006 01:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:36 AM.