Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Senior Member
 
Posts: 105
Default Date conditional formatting

Hi Friends,

COuld you please suggest a rules for conditional formatting cells with a date range- 05-May-2015

If given date is 14 days before today- highlight green
If given date is 5 days before today-highlight yellow
If given date is today or past today-highlight red

Example - Today is 06-May-2015

in cell A1 date given is 22-April-2015 , green
in cell A2 given date is 01-May-2015, yellow
in cell A3 given date is 06-May-2015, red
in cell A4 given date is 08-May-2015, red

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Date conditional formatting

Hi,

Am Wed, 6 May 2015 05:39:24 +0100 schrieb Excel Dumbo:

Example - Today is 06-May-2015

in cell A1 date given is 22-April-2015 , green
in cell A2 given date is 01-May-2015, yellow
in cell A3 given date is 06-May-2015, red
in cell A4 given date is 08-May-2015, red


Condition1: =A1<=TODAY()-14 = green
Condition2: =A1<=TODAY()-5 = yellow
Condition3: =A1=TODAY() = red

Note that the conditions has to be in this order.


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
Date Conditional Formatting Ray Excel Worksheet Functions 4 December 19th 09 08:45 PM
Conditional Formatting - due date Rod from Corrections Excel Worksheet Functions 4 February 5th 07 09:39 PM
Can a date be used for conditional formatting? Stevie P Excel Worksheet Functions 2 September 27th 05 09:42 PM
Conditional Date Formatting M H Excel Programming 4 July 22nd 05 12:41 PM


All times are GMT +1. The time now is 11:40 AM.

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"