I am working on an Excel sheet for Pokémon types.
One part of the sheet allows you to pick the Pokémon type. Cells B3
and C3
allow the type to be picked from a drop-down list of types via data validation. See below.
There is another part of the sheet which combines this type into a single cell with the following formula (which works fine):
= IF(OR(C3=B3,C3="(none)"),B3,B3&"/"&C3)
In this case, the formula above would return Grass/Poison
.
This is all well and good, but I want to take this cell and conditionally format it with a 2-color gradient to reflect the dual typing.
The problem is that I can't figure out a way to have a separate conditional formatting rule for each gradient color.
In other words, if I have these two conditional formatting rules (shown below), it will apply one or the other, but not both.
An obvious solution to this problem would be to have a single conditional formatting rule to handle this specific combination. (See below.) Although not fully shown below, the conditional formatting formula for this rule is =AND(B3="Grass",C3="Poison")
.
This solution does work. However, considering there are 18 types, this means I would have to make 18^2 = 324 separate conditional formatting rules for this cell (to handle all possible type combinations) which, I doubt Excel supports that many conditional formatting rules for a single cell and even if it did, it would be way too tedious to integrate.
If there is a way to have a cell apply two gradient rules to one cell, however, the number of rules would only be 18*2 = 36 (18 for the left gradients, and 18 for the right gradients), which is manageable.
Does anyone know how to have a conditional formatting rule apply a gradient color to only half of the cell (and allow the other half of the cell to be changed by another conditional formatting rule with a gradient)? Is this possible?