Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default conditional formatting based on proximity to date

I know that similar posts have been here before, sorry, but htis is a little
different. I need to conditioanally format a row if the anniverary date of
the person in that row is:

within 2 weeks of today OR the anniversary occured within the last week.

AND I need it for the following anniverary:
1 month
2 months
3 months
6 months
any annual anniverary.

Am I asking this to where it makes sense? Thanks,

Ron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 301
Default conditional formatting based on proximity to date

Use this formula for the conditional formatting, assuming the date is in
column A: Select everything, enter:
=OR(DATE(YEAR($A1),MONTH($A1),DAY($A1))=DATE(YEAR( TODAY()),MONTH(TODAY())-1,
DAY(TODAY())),DATE(YEAR($A1),MONTH($A1),DAY($A1))= DATE(YEAR(TODAY()),MONTH(T
ODAY())-2,DAY(TODAY())),DATE(YEAR($A1),MONTH($A1),DAY($A1) )=DATE(YEAR(TODAY(
)),MONTH(TODAY())-3,DAY(TODAY())),DATE(YEAR($A1),MONTH($A1),DAY($A1) )=DATE(Y
EAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())),DATE(2000,MONTH($A1),DAY($A1))=D
ATE(2000,MONTH(TODAY()),DAY(TODAY())),AND($A1<TODA Y()+14,$A1TODAY()-7))
Bob Umlas

"mato nanjin" wrote in message
...
I know that similar posts have been here before, sorry, but htis is a

little
different. I need to conditioanally format a row if the anniverary date

of
the person in that row is:

within 2 weeks of today OR the anniversary occured within the last week.

AND I need it for the following anniverary:
1 month
2 months
3 months
6 months
any annual anniverary.

Am I asking this to where it makes sense? Thanks,

Ron



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default conditional formatting based on proximity to date

Bob,

Thank you for this response. I know that I should know this but tell me the
significance of the "2000" in the formula ......())),DATE(2000,MONTH........

Thanks,

Ron

"Bob Umlas" wrote:

Use this formula for the conditional formatting, assuming the date is in
column A: Select everything, enter:
=OR(DATE(YEAR($A1),MONTH($A1),DAY($A1))=DATE(YEAR( TODAY()),MONTH(TODAY())-1,
DAY(TODAY())),DATE(YEAR($A1),MONTH($A1),DAY($A1))= DATE(YEAR(TODAY()),MONTH(T
ODAY())-2,DAY(TODAY())),DATE(YEAR($A1),MONTH($A1),DAY($A1) )=DATE(YEAR(TODAY(
)),MONTH(TODAY())-3,DAY(TODAY())),DATE(YEAR($A1),MONTH($A1),DAY($A1) )=DATE(Y
EAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())),DATE(2000,MONTH($A1),DAY($A1))=D
ATE(2000,MONTH(TODAY()),DAY(TODAY())),AND($A1<TODA Y()+14,$A1TODAY()-7))
Bob Umlas

"mato nanjin" wrote in message
...
I know that similar posts have been here before, sorry, but htis is a

little
different. I need to conditioanally format a row if the anniverary date

of
the person in that row is:

within 2 weeks of today OR the anniversary occured within the last week.

AND I need it for the following anniverary:
1 month
2 months
3 months
6 months
any annual anniverary.

Am I asking this to where it makes sense? Thanks,

Ron




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 based on a due date Mark Excel Discussion (Misc queries) 2 March 18th 09 03:08 PM
Conditional Formatting based on Today's Date MCouture Excel Discussion (Misc queries) 3 May 20th 08 02:46 PM
Conditional Formatting Based on Date LiveUser Excel Worksheet Functions 6 April 1st 08 06:11 PM
Conditional formatting based on date range RGB Excel Discussion (Misc queries) 3 May 23rd 06 05:37 PM
Conditional Formatting Based on Date John F.M. Excel Discussion (Misc queries) 1 June 2nd 05 08:14 PM


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