Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 19
Default Conditional Formatting - Given dates within certain range of days

Hi,

Is there a way to highlight cells that have dates that are within 12 to 15 days and 30 to 35 days?

Example:
A1 = 2/7
A2 = 2/1
A3 = 1/19
A4 = 2/15

I would like cell a2 and a3 to be highlighted (preferably different colors).

Thanks in advance!
  #2   Report Post  
Member
 
Posts: 93
Default

Hi Tee51

For the conditional formatting rules.
Assuming your data is column A:

Rule 1 Between 12-15 days from today:
=AND($A1<"",$A1=TODAY()+12,$A1<=TODAY()+15)

Rule 2 Between 30-35 days from today:
=AND($A1<"",$A1=TODAY()+30,$A1<=TODAY()+35)

Kevin

Quote:
Originally Posted by Tee51 View Post
Hi,

Is there a way to highlight cells that have dates that are within 12 to 15 days and 30 to 35 days?

Example:
A1 = 2/7
A2 = 2/1
A3 = 1/19
A4 = 2/15

I would like cell a2 and a3 to be highlighted (preferably different colors).

Thanks in advance!
  #3   Report Post  
Junior Member
 
Posts: 19
Default

Thanks.

I tried the formulas but neither worked? What if I wanted to do the entire column A? Would there be a difference in the formula?
  #4   Report Post  
Member
 
Posts: 93
Default

Then you haven't entered the formulas correctly and they are for column A!
Put a selection of dates in column A starting from A1 and put one of the formulas in B1 and the other in C1, copy down and you will see FALSE or TRUE ( If it finds a date that meet the criteria)!

Conditional formatting for Excel 2007
Select column A or a range of cells in column A that you wish to apply the rules. Home Tab Conditional Formatting New Rule Use a formula to determine which cells to format Formula for Rule 1 goes into the box Format as required OK OK. Do the same for Rule 2.


Quote:
Originally Posted by Tee51 View Post
Thanks.

I tried the formulas but neither worked? What if I wanted to do the entire column A? Would there be a difference in the formula?
  #5   Report Post  
Junior Member
 
Posts: 19
Default

Sorry Kevin,

But this is not what I was trying to do. I would like column A to highlight instead of having additional columns show true or false. Also, the text is only coming back with false.

Thanks for your help. I'll take my time and figure something out.


  #6   Report Post  
Member
 
Posts: 93
Default

Those additional columns are for example!!

I gave you the answer.
Conditional formatting for Excel 2007
Select column A or a range of cells in column A that you wish to apply the rules. Home Tab Conditional Formatting New Rule Use a formula to determine which cells to format Formula for Rule 1 goes into the box Format as required OK OK. Do the same for Rule 2.

Rule 1 Between 12-15 days from today:
=AND($A1<"",$A1=TODAY()+12,$A1<=TODAY()+15)

Rule 2 Between 30-35 days from today:
=AND($A1<"",$A1=TODAY()+30,$A1<=TODAY()+35)


Quote:
Originally Posted by Tee51 View Post
Sorry Kevin,

But this is not what I was trying to do. I would like column A to highlight instead of having additional columns show true or false. Also, the text is only coming back with false.

Thanks for your help. I'll take my time and figure something out.

Last edited by Kevin@Radstock : February 16th 13 at 10:01 AM
  #7   Report Post  
Junior Member
 
Posts: 19
Default

Figured it out!

This is what I was looking for. Thanks for your assistance.

=AND($A1<"",$A1<=TODAY()-30,$A1=TODAY()-35)
=AND($A1<"",$A1<=TODAY()-12,$A1=TODAY()-15)

Last edited by Tee51 : February 22nd 13 at 01:28 AM Reason: Resolution
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 highlight dates 90 days or less michelle Excel Worksheet Functions 7 July 2nd 09 09:59 PM
conditional formatting dates to change if its more than 3 days go markwmansell Excel Worksheet Functions 6 November 16th 08 05:42 PM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Conditional Formatting - Range of Dates Ann Excel Programming 3 May 24th 06 04:24 PM
Conditional formatting - range of dates Annabelle Excel Discussion (Misc queries) 0 May 24th 06 03:52 PM


All times are GMT +1. The time now is 04:18 AM.

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"