Simple Bar Chart with Bar Colors Based on Values?

slam

Well-known Member
Joined
Sep 16, 2002
Messages
913
Office Version
  1. 365
  2. 2019
I have a simple bar chart based on two columns, with a person's name in Column A, and a % for them in column D. Works well.

I want to color code the bars based on their % as follows:

0-10% = Green
11-20% = Yellow
> 20% = Red

Is this possible with Excel 365?

Thanks!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
It is possible, but as far as I know - and I'm happy to be corrected - the only way is to have 3 different series on your chart, and format them individually. In your case, you would create 3 x columns with formulas to determine whether to show the respective percentages, or leave blank, then format the series individually.

Bar Chart.xlsx
ABCDEFG
1NamePercentage0-1011-2020+
2Adam2%2%  
3Andrea4%4%  
4Bob8%8%  
5Barbara12% 12% 
6Chris14% 14% 
7Colette2%2%  
8Dave18% 18% 
9Dawn20% 20% 
10Eric22%  22%
11Eve24%  24%
Sheet1
Cell Formulas
RangeFormula
E2:E11E2=IF(D2<=0.1,D2,"")
F2:F11F2=IF(AND(D2>0.11,D2<=0.2),D2,"")
G2:G11G2=IF(D2>0.2,D2,"")


1647373539561.png
 
Upvote 0
Thank you, Kevin. That makes sense, I will give it a try soon.
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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