How can I auto fill from a "Data" worksheet to a "Report' worksheet based on Cell Interiour color?

Copper Contributor

Please see the attached work book.  I use this workbook for doing reviews of clients databases.  There is a sheet for the data and a sheet for the report.  I assign a color code to each item that is not in compliance and I add a solution for each out of compliance item. 

 

The Report sheet is broken up by severity, so there are Red, Orange and Yellow sections where I copy and paste the non-compliance items from the Data sheet.  I would like to automate this task so that the Red, Orange and Yellow sections auto populate according the cell with the Severity color code from the Data sheet.  The number of rows to evaluate remains constant but the number of Red, Or, Yellow codes varies from report to report. 

 

I have copied in some code to allow to evaluate the InteriorColor and it works but is there a way to evaluate a fixed range of cells and return a variable response and sort according the cell color?

 

Thank you in advance.

Rob

2 Replies
A couple of suggestions.
1. You would make your (and Excel's) life easier if you would use values in cells rather than a color. To visualise that on the sheet, you can always conditionally format those cells to color them based on their value.
2. Don't leave any empty rows in your data, sorting and filtering is easier of the data has no blank rows in between.
3. Perhaps you can use a pivot table to summarize the data (after taking head of my first remark)