May 15 2023 11:29 AM
Hello,
I am trying to create an excel spreadsheet that will accept conditional formatting but have it apply to multiple cells.
Using the example below, when I enter "XYZ" in the 5th column I would like it to assign a color to the preceding 3 cells as well. The same would then be true for "ABC" but a different color.
Example 1 | I'd like this colored blue | I'd like this colored blue | I'd like this colored blue | XYZ (Colored blue) |
Example 2 | I'd like this colored yellow | I'd like this colored yellow | I'd like this colored yellow | ABC (Colored yellow) |
How can I go about making this happen?
Thanks so much!
May 15 2023 11:40 AM - edited May 15 2023 11:43 AM
In the attached file the conditional format applies to range =$B$2:$E$21
This means if you enter "XYZ" or "ABC" in any cell in range =$E$2:$E$21 the 3 cells to the left are highlighted as well.
EDIT:
The rules for conditional format are:
=$E2="ABC"
and
=$E2="XYZ"
May 15 2023 12:23 PM
May 15 2023 12:48 PM
Solution=OFFSET(A1,0,3)="ABC"
You can try this and 3 additional rules for conditional formatting in the attached file.
=$A$1:$H$26
This is the range the format applies to in the example.
May 15 2023 01:03 PM