Forum Discussion
Conditional number color format
- Oct 31, 2020
The simplest and most flexible approach is to use Conditional Formatting
Just apply 3 rules
PeterVelschow Riny_van_Eekelen Wyn Hopkins
Two good solutions but which is the better?
1. Conditional formatting has a proper user interface supporting the definition of complex formatting rules. On the other hand, there is a maintenance burden as drag-and-drop gradually scrambles the region to which the formatting is applied (I wonder why CF does not support defined ranges properly?).
2. Number formatting is an arcane skill conducted requiring obscure codes to be applied within a user-hostile development context. That said, the functionality is an exact match for the OP's stated requirement. Number formatting can also be introduced as part of an applied Style which, at least,, make its definition a one-off task (I wonder what proportion of users employ Styles routinely?).
The only change I would make to Riny's solution is to use [Color10] rather than [Green] if it is to be viewed against a white background.
- PeterBartholomew1Oct 31, 2020Silver Contributor
(Tried to edit this in to the previous post but wasn't allowed)
- langbenJun 26, 2021Copper ContributorHow do you color cell. Red if negative. Blue if positive
- SergeiBaklanJun 26, 2021Diamond Contributor
That's in Riny_van_Eekelen post in this thread above