Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Highlighting dates in a cell relative to the TODAY()

I have a table with dates and wish to show:-

1. The date IF it has pasted requires to be highlighted in RED colour;
2. The date IF it is between 1 and 30 days from today's date to be coloured
BLUE;
3. The date IF it is between 30 and 60 days from today's date to be coloured
GREEN;

By highlighting means that the text colour changes to the colour mentioned
above and the font changes to BOLD.

Many thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Highlighting dates in a cell relative to the TODAY()

The facility you needd is Conditional Formatting. Look it up in Excel help.
--
David Biddulph

"Steve HKG" wrote in message
...
I have a table with dates and wish to show:-

1. The date IF it has pasted requires to be highlighted in RED colour;
2. The date IF it is between 1 and 30 days from today's date to be
coloured
BLUE;
3. The date IF it is between 30 and 60 days from today's date to be
coloured
GREEN;

By highlighting means that the text colour changes to the colour mentioned
above and the font changes to BOLD.

Many thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default Highlighting dates in a cell relative to the TODAY()

Hi

Conditional formatting will do what you need.

Select the date column, and goto Format Conditional Formatting Condition
1: Formula is

=A2<Today()

Format as required. Click to add another condition (max 3 conditions) .

=And(A2Today();A2<=Today()+30)

Condition 3:

=And(A2Today()+30;A2<=Today()+60)

Regards,
Per

"Steve HKG" skrev i meddelelsen
...
I have a table with dates and wish to show:-

1. The date IF it has pasted requires to be highlighted in RED colour;
2. The date IF it is between 1 and 30 days from today's date to be
coloured
BLUE;
3. The date IF it is between 30 and 60 days from today's date to be
coloured
GREEN;

By highlighting means that the text colour changes to the colour mentioned
above and the font changes to BOLD.

Many thanks!


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Highlighting dates in a cell relative to the TODAY()

Hi Per, thanks.

I have set it up and input the formulae as indicated in your reply, but
excel informs me that there is a error. I think in the line...

=And(A2Today();A2<=Today()+30)

But am not sure what it could be. Sorry!

Steve

"Per Jessen" wrote:

Hi

Conditional formatting will do what you need.

Select the date column, and goto Format Conditional Formatting Condition
1: Formula is

=A2<Today()

Format as required. Click to add another condition (max 3 conditions) .

=And(A2Today();A2<=Today()+30)

Condition 3:

=And(A2Today()+30;A2<=Today()+60)

Regards,
Per

"Steve HKG" skrev i meddelelsen
...
I have a table with dates and wish to show:-

1. The date IF it has pasted requires to be highlighted in RED colour;
2. The date IF it is between 1 and 30 days from today's date to be
coloured
BLUE;
3. The date IF it is between 30 and 60 days from today's date to be
coloured
GREEN;

By highlighting means that the text colour changes to the colour mentioned
above and the font changes to BOLD.

Many thanks!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Highlighting dates in a cell relative to the TODAY()

If your Windows list separator is a comma instead of a semi-colon, change
the semi-colon in the formula to a comma.

But you don't need the AND functions.
You've already tested for A2<Today() in the first condition, so the second
can be =A2<=Today()+30 and the 3rd can be =A2<=Today()+60
--
David Biddulph

"Steve HKG" wrote in message
...
Hi Per, thanks.

I have set it up and input the formulae as indicated in your reply, but
excel informs me that there is a error. I think in the line...

=And(A2Today();A2<=Today()+30)

But am not sure what it could be. Sorry!

Steve

"Per Jessen" wrote:

Hi

Conditional formatting will do what you need.

Select the date column, and goto Format Conditional Formatting
Condition
1: Formula is

=A2<Today()

Format as required. Click to add another condition (max 3 conditions) .

=And(A2Today();A2<=Today()+30)

Condition 3:

=And(A2Today()+30;A2<=Today()+60)

Regards,
Per

"Steve HKG" skrev i meddelelsen
...
I have a table with dates and wish to show:-

1. The date IF it has pasted requires to be highlighted in RED colour;
2. The date IF it is between 1 and 30 days from today's date to be
coloured
BLUE;
3. The date IF it is between 30 and 60 days from today's date to be
coloured
GREEN;

By highlighting means that the text colour changes to the colour
mentioned
above and the font changes to BOLD.

Many thanks!







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
How do count a cell range that include all dates prior to today? Bill T Excel Discussion (Misc queries) 3 August 19th 09 05:40 PM
Count Dates <Today? Ken Excel Discussion (Misc queries) 3 May 12th 09 01:59 PM
Counting dates before today Lynz Excel Discussion (Misc queries) 6 March 3rd 09 06:54 AM
relative highlighting Ed Excel Discussion (Misc queries) 5 April 17th 06 02:43 PM
Counting Dates less then today Teri Excel Worksheet Functions 2 January 12th 05 05:53 PM


All times are GMT +1. The time now is 10:24 PM.

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"