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

Hello all,
I would like to add some conditional formatting on dates but I am unsure on
the formula.

What I would like todo is color code a cell containing a date such that it
identifies how late it is. For example:
More than a week before the date is green
Between the week before the date right up to the date is yellow
After the date is red.

I am using Excel 2007 and can see that there is some quite snazzy
conditional formatting in this version but I am stuck with the formula (or
however else) you actually apply this.

--
Any help is appreciated

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default Conditional Formatting

I guess you want to compare the date in the cell with today's date...
If yes, then use the formula
=(Today()-A1) 7 for GREEN
=AND(=(Today()-A1) < 7, =(Today()-A1) =0) for YELLOW
=(A1-Today()) 0 for RED

The above is for showing you how to do it. Verify the conditions to see they
match with what you want. Also choose the option to STOP if the condition is
true... In Excel 2007 (Excel 2003 stops after the first match) you can
evaluate all conditions...

"Cos marchy" wrote:

Hello all,
I would like to add some conditional formatting on dates but I am unsure on
the formula.

What I would like todo is color code a cell containing a date such that it
identifies how late it is. For example:
More than a week before the date is green
Between the week before the date right up to the date is yellow
After the date is red.

I am using Excel 2007 and can see that there is some quite snazzy
conditional formatting in this version but I am stuck with the formula (or
however else) you actually apply this.

--
Any help is appreciated

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Conditional Formatting

Hi,

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=A1<TODAY()-7
5. Click the Format button and choose a format.
6. Click OK twice
7. New Rule
8. Choose Use a formula to determine which cell to format
9. In the Format values where this formula is true enter the following
formula:
=A1<TODAY()
10. Click the Format button and choose a format.
11. Click OK tree times.

and so on
=A1=TODAY()
red
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Cos marchy" wrote:

Hello all,
I would like to add some conditional formatting on dates but I am unsure on
the formula.

What I would like todo is color code a cell containing a date such that it
identifies how late it is. For example:
More than a week before the date is green
Between the week before the date right up to the date is yellow
After the date is red.

I am using Excel 2007 and can see that there is some quite snazzy
conditional formatting in this version but I am stuck with the formula (or
however else) you actually apply this.

--
Any help is appreciated

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 can I convert conditional formatting into explicit formatting? Patrick Harris Excel Discussion (Misc queries) 0 April 9th 09 12:00 AM
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 07:08 PM.

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

About Us

"It's about Microsoft Excel"