I’d like to set background color from cell value. Foreground color is easy to set from cell format. E.g., to have blue text for positive values and red text for negative value while keeping default color for zeroes, one can define this format;
[Blue]0;[Red]-0;0
Setting background color is harder.
- A macro can be defined, but it is rather overkill for such a simple need and you must not forget to rerun the macro when something changes in the sheet.
- Conditional formatting may also be attached to the cell.
However, this means styles must also be defined for every distinct case.
Maybe overkill again for this simple case.
Is there an undocumented feature in cell format definition to do this?
Alternatively, would it be a desirable feature to add to the wish list?
PS: I tried to create “vector” conditional formatting by selecting a range of cells and defining a formula to set style from a corresponding range of ‘source’ cells but apparently the “vector” semantics is not understood.