Color a bar RED based on a value being "RED"

jkalpus

New Member
Joined
Apr 17, 2004
Messages
46
Greetings! I need to have Excel format a bar as red if a value in the table is "red." For example:

In cell A1, A2, A3, I've got Rep / % / Team
In cell B2, B2, B3, I've got Steve / 90 / blue
In cell C1, C2, C3, I've got Bob / 40 / blue
In cell D1, D2, D3, I've got Phil / 65 / red

I want Excel to format Steve's bar to be BLUE, because he's a member of the "blue" team. I'd like the other bars to be similarly formatted in blue and red.

Any ideas?

Thanks for thinking! - John
 

Some videos you may like

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
1. Select all of rows 1,2 and 3 by clicking and dragging in the row labels area.
2. Apply the Conditional Formatting shown (iF you need help with how to do this, post back)

Excel Workbook
ABCDE
1RepSteveBobPhil
2%904065
3TeamBlueBlueRed
Conditional Formatting
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =A$3="Blue"Abc
A12. / Formula is =A$3="Red"Abc
 

Watch MrExcel Video

Forum statistics

Threads
1,122,193
Messages
5,594,774
Members
413,934
Latest member
austinb

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
Top