Change shape color based on cell value in multiple columns

lai_arceo

New Member
Joined
Apr 7, 2010
Messages
35
Hello.

I want to change the color of the shapes in columns D, I, N, S, X and AC based on the values of columns E, J, O, T, Y and AD respectively. If a cell in latter columns is:

B - shape color should be red
K - shape color should be blue
BIN - shape color should be green

Your help will be much appreciated.

Sample File.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
1
2BBBBBB
3
4
5
6KBBINKBINBIN
7
8
9
10
11KBBINKBINBIN
12
1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
R10Cell Value="K"textNO
R10Cell Value="B"textNO
P12Cell Value="K"textNO
P12Cell Value="B"textNO
P10:P11Cell Value="K"textNO
P10:P11Cell Value="B"textNO
AB10Cell Value="K"textNO
AB10Cell Value="B"textNO
Z10Cell Value="K"textNO
Z10Cell Value="B"textNO
Z12Cell Value="K"textNO
Z12Cell Value="B"textNO
Z11Cell Value="K"textNO
Z11Cell Value="B"textNO
W10Cell Value="K"textNO
W10Cell Value="B"textNO
U10Cell Value="K"textNO
U10Cell Value="B"textNO
U12Cell Value="K"textNO
U12Cell Value="B"textNO
U11Cell Value="K"textNO
U11Cell Value="B"textNO
M10Cell Value="K"textNO
M10Cell Value="B"textNO
K10Cell Value="K"textNO
K10Cell Value="B"textNO
K12Cell Value="K"textNO
K12Cell Value="B"textNO
K11Cell Value="K"textNO
K11Cell Value="B"textNO
H10Cell Value="K"textNO
H10Cell Value="B"textNO
C10Cell Value="K"textNO
C10Cell Value="B"textNO
F12Cell Value="K"textNO
F12Cell Value="B"textNO
A12Cell Value="K"textNO
A12Cell Value="B"textNO
F10Cell Value="K"textNO
F10Cell Value="B"textNO
F11Cell Value="K"textNO
F11Cell Value="B"textNO
A10:A11Cell Value="K"textNO
A10:A11Cell Value="B"textNO
B9:D9,G9:I9,L9:N9,V9:X9,AA9:AC9,Q9:S9Cell Value="K"textNO
B9:D9,G9:I9,L9:N9,V9:X9,AA9:AC9,Q9:S9Cell Value="B"textNO
R5Cell Value="K"textNO
R5Cell Value="B"textNO
P7Cell Value="K"textNO
P7Cell Value="B"textNO
P3Cell Value="K"textNO
P3Cell Value="B"textNO
P5:P6Cell Value="K"textNO
P5:P6Cell Value="B"textNO
P1:P2,R1Cell Value="K"textNO
P1:P2,R1Cell Value="B"textNO
AB5Cell Value="K"textNO
AB5Cell Value="B"textNO
Z5Cell Value="K"textNO
Z5Cell Value="B"textNO
AB1Cell Value="K"textNO
AB1Cell Value="B"textNO
Z1Cell Value="K"textNO
Z1Cell Value="B"textNO
Z7Cell Value="K"textNO
Z7Cell Value="B"textNO
Z6Cell Value="K"textNO
Z6Cell Value="B"textNO
Z3Cell Value="K"textNO
Z3Cell Value="B"textNO
Z2Cell Value="K"textNO
Z2Cell Value="B"textNO
W5Cell Value="K"textNO
W5Cell Value="B"textNO
U5Cell Value="K"textNO
U5Cell Value="B"textNO
W1Cell Value="K"textNO
W1Cell Value="B"textNO
U1Cell Value="K"textNO
U1Cell Value="B"textNO
U7Cell Value="K"textNO
U7Cell Value="B"textNO
U6Cell Value="K"textNO
U6Cell Value="B"textNO
U3Cell Value="K"textNO
U3Cell Value="B"textNO
U2Cell Value="K"textNO
U2Cell Value="B"textNO
M5Cell Value="K"textNO
M5Cell Value="B"textNO
K5Cell Value="K"textNO
K5Cell Value="B"textNO
M1Cell Value="K"textNO
M1Cell Value="B"textNO
K1Cell Value="K"textNO
K1Cell Value="B"textNO
H1Cell Value="K"textNO
H1Cell Value="B"textNO
K7Cell Value="K"textNO
K7Cell Value="B"textNO
K6Cell Value="K"textNO
K6Cell Value="B"textNO
H5Cell Value="K"textNO
H5Cell Value="B"textNO
C5Cell Value="K"textNO
C5Cell Value="B"textNO
F7Cell Value="K"textNO
F7Cell Value="B"textNO
A7Cell Value="K"textNO
A7Cell Value="B"textNO
K3Cell Value="K"textNO
K3Cell Value="B"textNO
F3Cell Value="K"textNO
F3Cell Value="B"textNO
A3Cell Value="K"textNO
A3Cell Value="B"textNO
F5Cell Value="K"textNO
F5Cell Value="B"textNO
K2Cell Value="K"textNO
K2Cell Value="B"textNO
F6Cell Value="K"textNO
F6Cell Value="B"textNO
F2Cell Value="K"textNO
F2Cell Value="B"textNO
F1Cell Value="K"textNO
F1Cell Value="B"textNO
A5:A6Cell Value="K"textNO
A5:A6Cell Value="B"textNO
A1:A2,C1Cell Value="K"textNO
A1:A2,C1Cell Value="B"textNO
B4:D4,G4:I4,L4:N4,V4:X4,AA4:AC4,Q4:S4Cell Value="K"textNO
B4:D4,G4:I4,L4:N4,V4:X4,AA4:AC4,Q4:S4Cell Value="B"textNO
 

Attachments

  • Sample file.JPG
    Sample file.JPG
    53 KB · Views: 6
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,215,388
Messages
6,124,658
Members
449,177
Latest member
Sousanna Aristiadou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top