A common situation I encounter when working with a sheet is to have data such as this (in CSV format):
-, A, B
1, ColA, ColB
2, one, value1
3, two, value2
4, three, value1
5, four, value2
6, five, value3
etc.
To help understand the data at a glance, I would like to be able to conditionally format the values in ColB to have a different background color based on their contents - e.g. value1
would become red, value2
would become blue, value3
would become green etc.
It is straightforward to do this manually via 3+ conditional formats, but I would like to do this via a generic formula that can be copied into any spreadsheet, and would format the contents of each cell based on its contents without adjusting. Ideally a wide spread of colors would be used for the different values, and so with 3 distinct values in the column these would be colored something like red, green, and blue; with 6 distinct values it would be something like these plus yellow, purple, and orange; with 100 distinct values these would be colored with 100 colors spread around the color wheel etc.
Is something like this possible, and if so how can this be done?