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

Hi

I have a spreadsheet that is similar to below:

A B C D E F G H I J ....

January 1 2 3 4 5 6 7 8 9 10...
a a b b b a b b a b
February 1 2 3 4 5 6 7 8 9 10...
c a c b b a b b a b

and so on.

So in one column the months are listed, then corresponsingly for two
rows there is the date until the end fo the month, and then under each
date is basically a task. I know it would probably be easier to
change the spreadsheet but it needs to be in this format. I want to
grey out dates that have passed, i.e before todays date. I can use
=TEXT(TODAY()"m") to create a corresponding reference to the month and
grey this out with conditional formatting, and also can obviously grey
out numbers in the dates less than todays "d" similarly, the problem
is this greys out all dates up to December. Is there a way I can uses
AND or something to just grey out numbers relating to the months that
have passed?

Cheers

Rich

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Conditional Formatting for dates

Use a formula of

=DATEVALUE(B2&"-"&$A2&"-"&YEAR(TODAY()))

in CF

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Richhall" wrote in message
oups.com...
Hi

I have a spreadsheet that is similar to below:

A B C D E F G H I J ....

January 1 2 3 4 5 6 7 8 9 10...
a a b b b a b b a b
February 1 2 3 4 5 6 7 8 9 10...
c a c b b a b b a b

and so on.

So in one column the months are listed, then corresponsingly for two
rows there is the date until the end fo the month, and then under each
date is basically a task. I know it would probably be easier to
change the spreadsheet but it needs to be in this format. I want to
grey out dates that have passed, i.e before todays date. I can use
=TEXT(TODAY()"m") to create a corresponding reference to the month and
grey this out with conditional formatting, and also can obviously grey
out numbers in the dates less than todays "d" similarly, the problem
is this greys out all dates up to December. Is there a way I can uses
AND or something to just grey out numbers relating to the months that
have passed?

Cheers

Rich



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Conditional Formatting for dates

On 23 Mar, 12:20, "Bob Phillips" wrote:
Use a formula of

=DATEVALUE(B2&"-"&$A2&"-"&YEAR(TODAY()))

in CF

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Richhall" wrote in message

oups.com...



Hi


I have a spreadsheet that is similar to below:


A B C D E F G H I J ....


January 1 2 3 4 5 6 7 8 9 10...
a a b b b a b b a b
February 1 2 3 4 5 6 7 8 9 10...
c a c b b a b b a b


and so on.


So in one column the months are listed, then corresponsingly for two
rows there is the date until the end fo the month, and then under each
date is basically a task. I know it would probably be easier to
change the spreadsheet but it needs to be in this format. I want to
grey out dates that have passed, i.e before todays date. I can use
=TEXT(TODAY()"m") to create a corresponding reference to the month and
grey this out with conditional formatting, and also can obviously grey
out numbers in the dates less than todays "d" similarly, the problem
is this greys out all dates up to December. Is there a way I can uses
AND or something to just grey out numbers relating to the months that
have passed?


Cheers


Rich- Hide quoted text -


- Show quoted text -


Cheers I shall give that a go.

Rich

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 Kat Excel Discussion (Misc queries) 9 December 14th 06 06:36 AM
conditional formatting with dates Vabu3184 Excel Worksheet Functions 2 March 27th 06 02:11 AM
Help with Conditional Formatting (Dates) BigH Excel Discussion (Misc queries) 1 January 28th 06 10:47 PM
Conditional Formatting (Dates) d_birr77 Excel Discussion (Misc queries) 6 July 20th 05 12:40 AM
Help with Conditional formatting with Dates Prabha Excel Discussion (Misc queries) 4 February 14th 05 04:13 PM


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