I have colour code combinations which relate to numbers e.g.
0.5 = Red, Red
0.9 = Yellow, Black
1.7 = Brown, Black
2.25 = Orange, Black
3.5 = Green, Black
4.5 = Grey, Grey
6 = Red, Black
etc.....
There are approx 50 numbers each with a unique two colour combination from 10 colours available.
Assume that in cell A1 of the Excel spreadsheet I want to type in any one of the 50 different numbers. I need this then to conditionally format cell B1 pattern to the first colour, and cell C1 to the second colour. i.e.
Cell A1 = 0.9
Cell B1 to have Yellow background (no text in cell required)
Cell C1 to have Black background (no text in cell required)
In reality this will be repeated in rows 2, 3, 4, 5, etc. with different numbers.
The simple solution would be conditional formatting, however this only allows a maximum of 3 conditions as opposed to 50.
I also tried using vlookup to a table of the combinations in a separate sheet. This would return colour names ok but wouldn't copy formats. If there is a way of getting vlookup to return formats as well as cell contents, that would be great.
I don't mind having to run a macro to format the cells (my attempts at this have failed), but use of a function in the cell which could do the same task automatically would be even better.
Any ideas/solutions would be greatly appreciated!
Bookmarks