Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Conditional Formatting with Dates (Revised)

Sorry please ignore my previous posting.
I hope someone will be able to help me. I have tried a number of things but
can't get this just right. I want to be able to make the text in a cell turn
red if todays date is between two dates. Example: in Cells A1 through A12
are the months of the year (January, February, March, April, May, June, July,
August, September, October, November, December). I want to highlight the
current month in Red.

I have tried the following and had mixed results. In each cell I enter the
following formula with the appropriate dates for that month. The examples
below are for cell A1 (January):

Assume today is January 15th. The text in cell A1 should turn red while A2
through A12 stay black.

1. =OR(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Turns text red regardless of current date


2. =AND(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Does not turn text red regardless of current date

I'm not sure whats wrong here, please help.

Thanks,
Bill

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Conditional Formatting with Dates (Revised)

Hi Bill

Try
=MONTH(TODAY())=MONTH($A1)

--
Regards
Roger Govier

"BillXMachina" wrote in message
...
Sorry please ignore my previous posting.
I hope someone will be able to help me. I have tried a number of things
but
can't get this just right. I want to be able to make the text in a cell
turn
red if todays date is between two dates. Example: in Cells A1 through
A12
are the months of the year (January, February, March, April, May, June,
July,
August, September, October, November, December). I want to highlight the
current month in Red.

I have tried the following and had mixed results. In each cell I enter
the
following formula with the appropriate dates for that month. The examples
below are for cell A1 (January):

Assume today is January 15th. The text in cell A1 should turn red while
A2
through A12 stay black.

1. =OR(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Turns text red regardless of current date


2. =AND(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Does not turn text red regardless of current date

I'm not sure whats wrong here, please help.

Thanks,
Bill

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Conditional Formatting with Dates (Revised)

Assumming cells A1 throught A12 are TEXT, try a formula similar to:

=$A1=TEXT(TODAY(),"MMMM")

Good Luck.

"BillXMachina" wrote:

Sorry please ignore my previous posting.
I hope someone will be able to help me. I have tried a number of things but
can't get this just right. I want to be able to make the text in a cell turn
red if todays date is between two dates. Example: in Cells A1 through A12
are the months of the year (January, February, March, April, May, June, July,
August, September, October, November, December). I want to highlight the
current month in Red.

I have tried the following and had mixed results. In each cell I enter the
following formula with the appropriate dates for that month. The examples
below are for cell A1 (January):

Assume today is January 15th. The text in cell A1 should turn red while A2
through A12 stay black.

1. =OR(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Turns text red regardless of current date


2. =AND(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Does not turn text red regardless of current date

I'm not sure whats wrong here, please help.

Thanks,
Bill

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Conditional Formatting with Dates (Revised)

Hi Roger and ND Pard

I tried both of these solutions and neither one works. I don't understand
what the problem might be. I put the formulas into the cells for each month
and then changed the date on the computer and nothing changes.

"Roger Govier" wrote:

Hi Bill

Try
=MONTH(TODAY())=MONTH($A1)

--
Regards
Roger Govier

"BillXMachina" wrote in message
...
Sorry please ignore my previous posting.
I hope someone will be able to help me. I have tried a number of things
but
can't get this just right. I want to be able to make the text in a cell
turn
red if todays date is between two dates. Example: in Cells A1 through
A12
are the months of the year (January, February, March, April, May, June,
July,
August, September, October, November, December). I want to highlight the
current month in Red.

I have tried the following and had mixed results. In each cell I enter
the
following formula with the appropriate dates for that month. The examples
below are for cell A1 (January):

Assume today is January 15th. The text in cell A1 should turn red while
A2
through A12 stay black.

1. =OR(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Turns text red regardless of current date


2. =AND(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Does not turn text red regardless of current date

I'm not sure whats wrong here, please help.

Thanks,
Bill

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Conditional Formatting with Dates (Revised)

Hi Bill

It looks as though you may have text values in a1:A12
Enter 01/01/2008 in A1 and use the fill handle to copy down to A12.
It should then show 02/01/2008, 03/01/2008 etc.
Select cells a1A12FormatcellsCustom mmmm

You should now see January, February etc displayed, but the underlying
values will be true Excel dates and the comparison should work

--
Regards
Roger Govier

"BillXMachina" wrote in message
...
Hi Roger and ND Pard

I tried both of these solutions and neither one works. I don't understand
what the problem might be. I put the formulas into the cells for each
month
and then changed the date on the computer and nothing changes.

"Roger Govier" wrote:

Hi Bill

Try
=MONTH(TODAY())=MONTH($A1)

--
Regards
Roger Govier

"BillXMachina" wrote in message
...
Sorry please ignore my previous posting.
I hope someone will be able to help me. I have tried a number of things
but
can't get this just right. I want to be able to make the text in a cell
turn
red if todays date is between two dates. Example: in Cells A1 through
A12
are the months of the year (January, February, March, April, May, June,
July,
August, September, October, November, December). I want to highlight the
current month in Red.

I have tried the following and had mixed results. In each cell I enter
the
following formula with the appropriate dates for that month. The examples
below are for cell A1 (January):

Assume today is January 15th. The text in cell A1 should turn red while
A2
through A12 stay black.

1. =OR(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Turns text red regardless of current date


2. =AND(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Does not turn text red regardless of current date

I'm not sure whats wrong here, please help.

Thanks,
Bill



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Conditional Formatting with Dates (Revised)

Roger,

Thank you, that did it! I appreciate the help.

Thanks,
Bill

"Roger Govier" wrote:

Hi Bill

It looks as though you may have text values in a1:A12
Enter 01/01/2008 in A1 and use the fill handle to copy down to A12.
It should then show 02/01/2008, 03/01/2008 etc.
Select cells a1A12FormatcellsCustom mmmm

You should now see January, February etc displayed, but the underlying
values will be true Excel dates and the comparison should work

--
Regards
Roger Govier

"BillXMachina" wrote in message
...
Hi Roger and ND Pard

I tried both of these solutions and neither one works. I don't understand
what the problem might be. I put the formulas into the cells for each
month
and then changed the date on the computer and nothing changes.

"Roger Govier" wrote:

Hi Bill

Try
=MONTH(TODAY())=MONTH($A1)

--
Regards
Roger Govier

"BillXMachina" wrote in message
...
Sorry please ignore my previous posting.
I hope someone will be able to help me. I have tried a number of things
but
can't get this just right. I want to be able to make the text in a cell
turn
red if todays date is between two dates. Example: in Cells A1 through
A12
are the months of the year (January, February, March, April, May, June,
July,
August, September, October, November, December). I want to highlight the
current month in Red.

I have tried the following and had mixed results. In each cell I enter
the
following formula with the appropriate dates for that month. The examples
below are for cell A1 (January):

Assume today is January 15th. The text in cell A1 should turn red while
A2
through A12 stay black.

1. =OR(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Turns text red regardless of current date


2. =AND(TODAY() = 1-1-2008, TODAY() <= 1-31-2008)
Results = Does not turn text red regardless of current date

I'm not sure whats wrong here, please help.

Thanks,
Bill

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 dates Richhall Excel Worksheet Functions 2 March 23rd 07 02:38 PM
Conditional Formatting - dates Kat Excel Discussion (Misc queries) 9 December 14th 06 06:36 AM
Revised dates in excel Fifee New Users to Excel 2 August 24th 06 06:25 PM
Dates in Conditional Formatting help!!! Corey Excel Worksheet Functions 1 July 27th 06 10:08 AM
Conditional Formatting w/ Dates John F.M. Excel Discussion (Misc queries) 5 May 31st 05 03:18 PM


All times are GMT +1. The time now is 03:21 AM.

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"