Hello there. I Inserted an SQL query in Excel to pick for me data like the above.
Is there a way I can set Excel to automatically Change The Background color each time it encounter a different value.
For example, we have Kigongo Charles in Orange, I want that when it meets the next value that is Not Kigongo Charles, it changes the Background color to any other color. ie when it reaches KITAYIMBWA ROBERT, it changes, then when it reaches MBULABANTU LAWRENCE, it changes again to any random color.
Like that Like that. Am using Excel 2016
Any work around will be highly appreciated
Best Answer
You might be interested in this Macro. I think it does exactly what you want now.
I have edited the code to also make the color changes on the horizontal lines up to 5 cells away from the selected cell. So what you do is select all the names of the database and then run the macro.