Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Excel

Conditional formatting a date range

 
Jump to:  
 
JC
PostPosted: Wed Sep 03, 2008 4:49 pm    Post subject: Conditional formatting a date range
       
If I have a column of dates that are manual entered what is the formula to
conditionally format them based on a date range of three months before the
current date to the current date and another three months after the current
date to the current date?
 

 
Pete_UK
PostPosted: Wed Sep 03, 2008 11:37 pm    Post subject: Re: Conditional formatting a date range
       
Assume the dates are in column A, starting with A1. Highlight all the
dates, with A1 as the active cell, and click on Format | Conditional
Formatting. In the dialogue box you should select Formula Is rather
than Cell Value Is and then enter this formula:

=AND(A1>=TODAY()-91,A1<=TODAY())

Click on the Format button and choose the format you want - you might
like to click on the Patterns tab (for background colour) and choose
bright yellow, for example. Then click OK and then Add to set up the
second condition, choose Formula Is again and enter this formula:

=AND(A1<=TODAY()+91,A1>TODAY())

Then click the format button, and maybe this time choose a bright
green background. Click OK twice to exit the dialogue box.

The formulae will automatically adjust to suit the other cells
highlighted, so you should see your effects straightaway.

Hope this helps.

Pete

On Sep 3, 7:49 pm, JC <J...@discussions.microsoft.com> wrote:
Quote:
If I have a column of dates that are manual entered what is the formula to
conditionally format them based on a date range of three months before the
current date to the current date and another three months after the current
date to the current date?
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

projekty garaży zakłady bukmacherskie Chorwacja Książka kucharska ubranka dla dzieci