Forum Discussion
Conditional Formatting based on two cells
- Jul 31, 2019
You may apply the rule to B1:B2 only and, if you need another colour for the pair B3:B4, create one more rule applying to B3:B4 with similar formula, only change B1 on B3 in it. Or, alternatively, create the rule for B1:B2, after that apply by Format Painter to B3:B4 and change colour for this pair rule.
Hi, this works for blanks in both but if you input a number or text into one of the cells the format does not clear, until you have wrote in both. Do you know how to solve this,
Thanks!
You may use one rule with the formula
=LEN(B1&OFFSET(B1,MOD(ROW(),2)*2-1,0))=0
applied to entire column B (starting from cell B1)
- SergeiBaklanJul 31, 2019Diamond Contributor
You may apply the rule to B1:B2 only and, if you need another colour for the pair B3:B4, create one more rule applying to B3:B4 with similar formula, only change B1 on B3 in it. Or, alternatively, create the rule for B1:B2, after that apply by Format Painter to B3:B4 and change colour for this pair rule.
- Bailey100Jul 31, 2019Brass Contributor
Thanks, is it not possible to do it for selected sells such as maybe b1 and b2, as i need a separate one for b3 and b4?