Forum Discussion
Conditional Formatting on Data Range
- Jan 02, 2025
Let's say the data are in B2:Z2.
Select this range. The first cell (B2 in this example) should be the active cell in the selection.On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula=OR(B2=4, B2=8, B2=17, B2=21, B2=30, B2=34, B2=43, B2=47)
Click Format...
Activate the Fill tab.
Select a fill colour.
Click OK, then click OK again.Repeat these steps, but with
=OR(B2=13, B2=26, B2=39, B2=52)
and another colour.
Let's say the data are in B2:Z2.
Select this range. The first cell (B2 in this example) should be the active cell in the selection.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=OR(B2=4, B2=8, B2=17, B2=21, B2=30, B2=34, B2=43, B2=47)
Click Format...
Activate the Fill tab.
Select a fill colour.
Click OK, then click OK again.
Repeat these steps, but with
=OR(B2=13, B2=26, B2=39, B2=52)
and another colour.
- TimS2025Jan 03, 2025Copper Contributor
Thanks Hans - this worked, really appreciate you posting the solution ! :)