Simple Bar Chart with Bar Colors Based on Values?

slam

Well-known Member
Joined
Sep 16, 2002
Messages
921
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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