HelpMeWithExcelPlease
New Member
- Joined
- Jul 27, 2017
- Messages
- 24
Hi all,
I think this is a conditional formatting issue, but I am unsure. To add some complexity, I have to insert a new column each week to provide historical context, so the formula cannot just reference column C vs. column D - the formula has to move with the insertion of new columns. The formatting should be based on comparing cells between two columns, but again these columns change based on the date. Below are example tables to help clarify:
02/19 Table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]ID[/TD]
[TD="align: center"]2/05 Status[/TD]
[TD="align: center"]2/12 Status[/TD]
[TD="align: center"]Current Status[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReOpen[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReTest[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Open[/TD]
[/TR]
</tbody>[/TABLE]
02/26 Status
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]ID[/TD]
[TD="align: center"]02/05 Status[/TD]
[TD="align: center"]02/12 Status[/TD]
[TD="align: center"]02/19 Status[/TD]
[TD="align: center"]Current Status[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReOpen[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReTest[/TD]
[TD]ReOpen[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]
On the 02/19 Status Table, I would like to highlight the cells in the "Current Status" column if the 2/12 Status is ReTest and then the Current Status is Closed or ReOpen. Then, when I update the table on 2/26 (to the 02/26 Status Table), I need the new "Current Status" column cells to be highlighted based on those same conditions, except now I need to highlight the Current Status column cells if the 02/19 Status is ReTest and Current Status is either ReOpen or Closed.
Can this be done in Conditional formatting? Or do I need to add some VBA code? Or can I put in a formula into another column that returns a value, then highlights my "Current Status" column based on that value? Should I be using cell name to provide references for the formula?
Any assistance or direction you all can provide on this would be greatly appreciated! Thank you in advance!
I think this is a conditional formatting issue, but I am unsure. To add some complexity, I have to insert a new column each week to provide historical context, so the formula cannot just reference column C vs. column D - the formula has to move with the insertion of new columns. The formatting should be based on comparing cells between two columns, but again these columns change based on the date. Below are example tables to help clarify:
02/19 Table
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]ID[/TD]
[TD="align: center"]2/05 Status[/TD]
[TD="align: center"]2/12 Status[/TD]
[TD="align: center"]Current Status[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReOpen[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReTest[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Open[/TD]
[/TR]
</tbody>[/TABLE]
02/26 Status
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]ID[/TD]
[TD="align: center"]02/05 Status[/TD]
[TD="align: center"]02/12 Status[/TD]
[TD="align: center"]02/19 Status[/TD]
[TD="align: center"]Current Status[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReOpen[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]ReTest[/TD]
[TD]ReOpen[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Open[/TD]
[TD]ReTest[/TD]
[TD]Open[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]
On the 02/19 Status Table, I would like to highlight the cells in the "Current Status" column if the 2/12 Status is ReTest and then the Current Status is Closed or ReOpen. Then, when I update the table on 2/26 (to the 02/26 Status Table), I need the new "Current Status" column cells to be highlighted based on those same conditions, except now I need to highlight the Current Status column cells if the 02/19 Status is ReTest and Current Status is either ReOpen or Closed.
Can this be done in Conditional formatting? Or do I need to add some VBA code? Or can I put in a formula into another column that returns a value, then highlights my "Current Status" column based on that value? Should I be using cell name to provide references for the formula?
Any assistance or direction you all can provide on this would be greatly appreciated! Thank you in advance!