LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Conditional Formatting with dates

Hi Tom,

Its ok i've got it now. Thanks for your help

"Craig" wrote:

Hi Tom,

Thanks for the reply. I entered the conditional formatting as you said below
and set it so that the cell would change to red once the condition had been
met.
In cell A1 i entered a date of 03-Nov-2006 and in cell A2 i entered 3
(number of years). The cell in A1 changed to red but it shouldn't do until
03-Nov-2009 because the certificate is valid for three years.
I'm not sure why its doing that. Would the date format make any difference?

Kind Regards
Craig

"TomPl" wrote:

If the training date is in cell A1 and the years it is valid is in cell A2
then apply this conditional formatting to cell A1:

Condition - Cell Value - is less than -
=DATE(YEAR(TODAY())-B1,MONTH(TODAY()),DAY(TODAY()))

This formula is based on the current date but could be modified to work with
any date you specify.

Tom

 
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
dates and conditional formatting JH Excel Discussion (Misc queries) 3 July 25th 08 02:53 PM
Conditional Formatting with Dates JoAnn New Users to Excel 2 February 25th 08 03:12 PM
Conditional formatting dates Contracto Excel Discussion (Misc queries) 2 April 10th 07 07:52 AM
Dates in Conditional Formatting help!!! Corey Excel Worksheet Functions 1 July 27th 06 10:08 AM
Conditional Formatting for dates spacerocket Excel Worksheet Functions 2 November 4th 04 10:13 AM


All times are GMT +1. The time now is 11:31 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"