shane_kidani
New Member
I have a spreadsheet that I'm working on. What I would like to do is have the cells in the range fill/highlight with a certain color, based on the current date and the date a training activity is due.
For example, I have a chart of 17 employees with 10 training activities that i'd like to monitor. For the sake of clarity, let's say the due dates for these trainings are all the same (6/30/13). So, my chart would have 19 rows (headers plus+due dates+employees) and my chart would have 11 columns (employee names + training activity names).
I want to accomplish something quite similar to Chandoo's tutorial on highlighting due dates: http://chandoo.org/wp/2012/05/22/highlight-due-dates-excel/
My goal is to have the cells within the specified range turn green on the following conditions:
1. No date is entered into the cell;
2. Due date for activity is 30 or more days from expiring.
Chandoo's code in his example is: =AND(MEDIAN(TODAY()+1,$C6,TODAY()+7)=$C6,$D6="")
Where "$D6" is his condition to look up. So, if Excel looks at D6 or below, and finds "Yes" in a cell, then it changes text to a dull gray, otherwise, it highlights the cell range either red or orange, based on the due date.
Ultimately, I'd like to make the cells in range turn green if 30 or more days from expiration; yellow if between 10 and 29 days from expiring; orange if within 5-9; and red if 4 or less or past expiration date.
The problems I've encountered are:
1. Only the top row in range changes with the due date changing;
2. All cells in range will change, giving the impression of working properly, but then only top row changes when due date changes
I've done some reading, and I realize that there may be a conflict in the logic of the rules, so if somebody could help me understand where I'm going wrong, that would be great.
For example, I have a chart of 17 employees with 10 training activities that i'd like to monitor. For the sake of clarity, let's say the due dates for these trainings are all the same (6/30/13). So, my chart would have 19 rows (headers plus+due dates+employees) and my chart would have 11 columns (employee names + training activity names).
I want to accomplish something quite similar to Chandoo's tutorial on highlighting due dates: http://chandoo.org/wp/2012/05/22/highlight-due-dates-excel/
My goal is to have the cells within the specified range turn green on the following conditions:
1. No date is entered into the cell;
2. Due date for activity is 30 or more days from expiring.
Chandoo's code in his example is: =AND(MEDIAN(TODAY()+1,$C6,TODAY()+7)=$C6,$D6="")
Where "$D6" is his condition to look up. So, if Excel looks at D6 or below, and finds "Yes" in a cell, then it changes text to a dull gray, otherwise, it highlights the cell range either red or orange, based on the due date.
Ultimately, I'd like to make the cells in range turn green if 30 or more days from expiration; yellow if between 10 and 29 days from expiring; orange if within 5-9; and red if 4 or less or past expiration date.
The problems I've encountered are:
1. Only the top row in range changes with the due date changing;
2. All cells in range will change, giving the impression of working properly, but then only top row changes when due date changes
I've done some reading, and I realize that there may be a conflict in the logic of the rules, so if somebody could help me understand where I'm going wrong, that would be great.