Folks, I'm looking for a Sanity check on my date-based conditional formats.
if you find the logic flawed, or you have a better way of doing this, I would be grateful for your input.
I have two columns of dates as shown in table:
Excel 2007
Date in column "M" is input by user. Date in column "N" is calculated by formula as shown.
My conditional formatting logic for column "N" is as follows:
Rule 1) Format only cells that contain BLANKS. No format set. STOP IF TRUE checked.
intended meaning; if Cell in column "M" is Blank, then corresponding cell in column "N" is left blank with NO formatting. STOP.
Rule 2) Format only cells that contain Cell Value between =TODAY() and =TODAY()+180
Cell background Format YELLOW. STOP IF TRUE checked.
intended meaning; if Column "N" date falls within todays date and the previous six months then turn the cell background YELLOW. STOP.
Rule 3) Use a formula to determine which cells to format. Format values where this formula is true =$N2< TODAY()
intended meaning; if cell value does not meet the first two rules criteria AND its less than TODAY(), it's in the past and is red. STOP.
Rule 4) Use a formula to determine which cells to format. Format values where this formula is true: =$N2>=TODAY()-180 Format cell background GREEN.
intended meaning; if cell value does not meet the first three rules criteria it is GREEN because it's not in the past, and it's not within six months of the given date.
Thanks.
if you find the logic flawed, or you have a better way of doing this, I would be grateful for your input.
I have two columns of dates as shown in table:
Excel Workbook | ||||
---|---|---|---|---|
M | N | |||
1 | Certification Date | Projected Re-certification Date | ||
2 | 09/28/10 | 09/27/12 | ||
3 | 09/30/10 | 09/29/12 | ||
4 | ||||
5 | ||||
6 | 07/26/08 | 07/26/10 | ||
7 | ||||
8 | ||||
9 | 02/14/11 | 02/13/13 | ||
10 | 09/30/10 | 09/29/12 | ||
11 | ||||
12 | 05/20/09 | 05/20/11 | ||
13 | ||||
Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
N2 | =IF($M2="","",$M2+730) |
Date in column "M" is input by user. Date in column "N" is calculated by formula as shown.
My conditional formatting logic for column "N" is as follows:
Rule 1) Format only cells that contain BLANKS. No format set. STOP IF TRUE checked.
intended meaning; if Cell in column "M" is Blank, then corresponding cell in column "N" is left blank with NO formatting. STOP.
Rule 2) Format only cells that contain Cell Value between =TODAY() and =TODAY()+180
Cell background Format YELLOW. STOP IF TRUE checked.
intended meaning; if Column "N" date falls within todays date and the previous six months then turn the cell background YELLOW. STOP.
Rule 3) Use a formula to determine which cells to format. Format values where this formula is true =$N2< TODAY()
intended meaning; if cell value does not meet the first two rules criteria AND its less than TODAY(), it's in the past and is red. STOP.
Rule 4) Use a formula to determine which cells to format. Format values where this formula is true: =$N2>=TODAY()-180 Format cell background GREEN.
intended meaning; if cell value does not meet the first three rules criteria it is GREEN because it's not in the past, and it's not within six months of the given date.
Thanks.