Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Conditional formatting of dates

Hi all,

Am using Excel 2007, and trying to highlight dates in a column (F) that are
within one year of today.

If I run the following function on each date in the column, it behaves as
expected:
=IF(F3<(TODAY()+365),"RENEW NOW","OK")

Now, if I try to now do a conditional format on the column, highlighting all
values that are TRUE (ie: need renewing) using the following, it just
highlights every value (there are definite dates which are "OK":

=F:F<(TODAY()+365)

Have not really played with conditional formatting before, so I am probably
doing something embarrassingly wrong.

Could anyone lend a hand please?

Thanks in advance

EJ


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Conditional formatting of dates

I've never used 2007 but this works for 2003.

Select column F then
Format|Conditional format
Formula is
enter the formula
=AND($F1<"",$F1<TODAY()+365)
Pick a colour
Click OK

Mike

"EJ" wrote:

Hi all,

Am using Excel 2007, and trying to highlight dates in a column (F) that are
within one year of today.

If I run the following function on each date in the column, it behaves as
expected:
=IF(F3<(TODAY()+365),"RENEW NOW","OK")

Now, if I try to now do a conditional format on the column, highlighting all
values that are TRUE (ie: need renewing) using the following, it just
highlights every value (there are definite dates which are "OK":

=F:F<(TODAY()+365)

Have not really played with conditional formatting before, so I am probably
doing something embarrassingly wrong.

Could anyone lend a hand please?

Thanks in advance

EJ



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Conditional formatting of dates

That worked a treat!

Thank you very much for your time :)

EJ

"Mike H" wrote in message
...
I've never used 2007 but this works for 2003.

Select column F then
Format|Conditional format
Formula is
enter the formula
=AND($F1<"",$F1<TODAY()+365)
Pick a colour
Click OK

Mike

"EJ" wrote:

Hi all,

Am using Excel 2007, and trying to highlight dates in a column (F) that
are
within one year of today.

If I run the following function on each date in the column, it behaves as
expected:
=IF(F3<(TODAY()+365),"RENEW NOW","OK")

Now, if I try to now do a conditional format on the column, highlighting
all
values that are TRUE (ie: need renewing) using the following, it just
highlights every value (there are definite dates which are "OK":

=F:F<(TODAY()+365)

Have not really played with conditional formatting before, so I am
probably
doing something embarrassingly wrong.

Could anyone lend a hand please?

Thanks in advance

EJ





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 Dates Chas2 Excel Discussion (Misc queries) 5 February 2nd 08 09:26 PM
Conditional formatting - Dates Duncan Excel Discussion (Misc queries) 2 July 23rd 07 10:50 PM
Conditional formatting dates Contracto Excel Discussion (Misc queries) 2 April 10th 07 07:52 AM
Using Conditional Formatting for Dates MOP Excel Discussion (Misc queries) 6 November 3rd 06 06:25 PM
conditional formatting with dates Vabu3184 Excel Worksheet Functions 2 March 27th 06 02:11 AM


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