You get one or the other - not both. If you have data bars, the length shows the relative value, not the color. If you want colors, then you don't get bars.
How to Color data bars in excel based on conditional formatting
I have the following column in a sheet
I would like to plot the data bars in the Variance Column and
also format them conditionally
My requirements are :
- Min value =0 max value=100
- Bar will automatically stretch in cell based on cell
- Bar will get a green color if percentage=0
- Bar will get a blue color if percentage >0 but <10
- Bar will turn red if the percentage >10
I want the bars to be shaded with the colors not the entire cell , only the color change should reflect in bar
and not in the entire cell
Any suggestions
I tried using conditional formatting but unable to get the color only in bars inspite i end up coloring the entire cell.
Microsoft 365 and Office | Excel | For home | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
8 answers
Sort by: Most helpful
-
Anonymous
2014-12-08T15:41:36+00:00 -
Lz._ 38,106 Reputation points Volunteer Moderator2014-12-08T17:23:31+00:00 Hi,
If the following is close to what you expect have a look to TarunVariancePlot.xlsx here for the formulas and Conditional Formatting rules:
As you can see the Variance actually takes 10 columns.
Hope this helps
Cheers
Lz.
-
Anonymous
2014-12-08T18:17:11+00:00 You can also use this technique for "Conditionally Formatted In-Cell Charts" using just one cell per row:
http://peltiertech.com/Excel/Charts/InCellFormulaCharts.html
-
Lz._ 38,106 Reputation points Volunteer Moderator2014-12-15T07:31:36+00:00 Hi,
Did any of the above proposals help? Your feedback (and Answer if applicable) would be appreciated. Thanks in advance
Cheers
Lz.
-
Anonymous
2014-12-16T10:40:49+00:00 Hi
Thanks for your help , but this isnt the pattern i am looking for.
The bars in Range C5 , C6 and C8 have the identical bar length although they
hold different percent values
Can we have a fix on this.