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 What is formula to have an upcoming date change color?

I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default What is formula to have an upcoming date change color?

Hey, try this... it should work by highlighting the cells that are within two
months away. Select the column that has the dates.... then go to

Format--- Conditional Formatting

Then change Condition 1 to---- Formula is

And in the Formula Box type

=AND(A1-TODAY()<60,A1-TODAY()0)

REMEMBER**** you have to Change A1 to whereever your first date starts. So
if your dates are in column H... you will change the A1s to H1s, etc.

"Sunset" wrote:

I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default What is formula to have an upcoming date change color?

Select the cell you want to change, assume it is A2, do format conditional
formatting, select formula is and use

=DATE(YEAR(TODAY()),MONTH(TODAY())+2,DAY(TODAY())) =A2

click the format button and select the format you want

what do you want to happen when the date is less than today? If you want to
remove the formatting you can use

=AND(A2=TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()) +2,DAY(TODAY()))=A2)


--
Regards,

Peo Sjoblom



"Sunset" wrote in message
...
I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default What is formula to have an upcoming date change color?

Seems to be the right direction, although the boxes that highlighted either
have no information or are dated 12-30-2007. The column is the "H" beginning
with row "7"

"AKphidelt" wrote:

Hey, try this... it should work by highlighting the cells that are within two
months away. Select the column that has the dates.... then go to

Format--- Conditional Formatting

Then change Condition 1 to---- Formula is

And in the Formula Box type

=AND(A1-TODAY()<60,A1-TODAY()0)

REMEMBER**** you have to Change A1 to whereever your first date starts. So
if your dates are in column H... you will change the A1s to H1s, etc.

"Sunset" wrote:

I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default What is formula to have an upcoming date change color?

Try just doing it for the entire column starting with H1, because it works
perfectly on my spreadsheet. It only highlights values that are today through
2 months... and leaves all text and other dates alone.

"Sunset" wrote:

Seems to be the right direction, although the boxes that highlighted either
have no information or are dated 12-30-2007. The column is the "H" beginning
with row "7"

"AKphidelt" wrote:

Hey, try this... it should work by highlighting the cells that are within two
months away. Select the column that has the dates.... then go to

Format--- Conditional Formatting

Then change Condition 1 to---- Formula is

And in the Formula Box type

=AND(A1-TODAY()<60,A1-TODAY()0)

REMEMBER**** you have to Change A1 to whereever your first date starts. So
if your dates are in column H... you will change the A1s to H1s, etc.

"Sunset" wrote:

I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default What is formula to have an upcoming date change color?

That didn't do it either, my cells with 5/31/2007 should have highlighted, I
only had one dated 6/30/2007 that highlighted out of 4, and still many with
N/As that highlighted.

"Peo Sjoblom" wrote:

Select the cell you want to change, assume it is A2, do format conditional
formatting, select formula is and use

=DATE(YEAR(TODAY()),MONTH(TODAY())+2,DAY(TODAY())) =A2

click the format button and select the format you want

what do you want to happen when the date is less than today? If you want to
remove the formatting you can use

=AND(A2=TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()) +2,DAY(TODAY()))=A2)


--
Regards,

Peo Sjoblom



"Sunset" wrote in message
...
I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default What is formula to have an upcoming date change color?

Except that it won't work for all months since you assume that 2 months are
60 days whereas Jan and Feb are 59 or 60 or Jul and Aug are 62 meaning that
when today is for instance either 28, 29 or 30th December and the future
date is 02/28 it won't change the format.


--
Regards,

Peo Sjoblom



"AKphidelt" wrote in message
...
Try just doing it for the entire column starting with H1, because it works
perfectly on my spreadsheet. It only highlights values that are today
through
2 months... and leaves all text and other dates alone.

"Sunset" wrote:

Seems to be the right direction, although the boxes that highlighted
either
have no information or are dated 12-30-2007. The column is the "H"
beginning
with row "7"

"AKphidelt" wrote:

Hey, try this... it should work by highlighting the cells that are
within two
months away. Select the column that has the dates.... then go to

Format--- Conditional Formatting

Then change Condition 1 to---- Formula is

And in the Formula Box type

=AND(A1-TODAY()<60,A1-TODAY()0)

REMEMBER**** you have to Change A1 to whereever your first date starts.
So
if your dates are in column H... you will change the A1s to H1s, etc.

"Sunset" wrote:

I have a spreadsheet that shows contract begin and end dates. I would
like
the end date to highlight or change colors when it is two months
away.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default What is formula to have an upcoming date change color?

Either your dates are text or you fail to implement the formatting correctly


--
Regards,

Peo Sjoblom



"Sunset" wrote in message
...
That didn't do it either, my cells with 5/31/2007 should have highlighted,
I
only had one dated 6/30/2007 that highlighted out of 4, and still many
with
N/As that highlighted.

"Peo Sjoblom" wrote:

Select the cell you want to change, assume it is A2, do format
conditional
formatting, select formula is and use

=DATE(YEAR(TODAY()),MONTH(TODAY())+2,DAY(TODAY())) =A2

click the format button and select the format you want

what do you want to happen when the date is less than today? If you want
to
remove the formatting you can use

=AND(A2=TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()) +2,DAY(TODAY()))=A2)


--
Regards,

Peo Sjoblom



"Sunset" wrote in message
...
I have a spreadsheet that shows contract begin and end dates. I would
like
the end date to highlight or change colors when it is two months away.






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default What is formula to have an upcoming date change color?

Thank you for your help

"AKphidelt" wrote:

Try just doing it for the entire column starting with H1, because it works
perfectly on my spreadsheet. It only highlights values that are today through
2 months... and leaves all text and other dates alone.

"Sunset" wrote:

Seems to be the right direction, although the boxes that highlighted either
have no information or are dated 12-30-2007. The column is the "H" beginning
with row "7"

"AKphidelt" wrote:

Hey, try this... it should work by highlighting the cells that are within two
months away. Select the column that has the dates.... then go to

Format--- Conditional Formatting

Then change Condition 1 to---- Formula is

And in the Formula Box type

=AND(A1-TODAY()<60,A1-TODAY()0)

REMEMBER**** you have to Change A1 to whereever your first date starts. So
if your dates are in column H... you will change the A1s to H1s, etc.

"Sunset" wrote:

I have a spreadsheet that shows contract begin and end dates. I would like
the end date to highlight or change colors when it is two months away.

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
Change cell color if date exceeds formula Harry K Excel Discussion (Misc queries) 1 March 9th 07 09:51 AM
formula to change color of a cell when date is over a year old? jvmn New Users to Excel 2 June 27th 06 02:30 PM
Upcoming Date alerts Trenton Excel Worksheet Functions 9 May 31st 06 09:50 PM
HOW TO USE A FORMULA TO CHANGE CELL COLOR ACCORDING TO DATE RANGE. terry Excel Worksheet Functions 2 December 27th 04 04:07 AM
compute upcoming Sunday date in a cell CJ Excel Worksheet Functions 2 November 25th 04 03:33 PM


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