Conditional Format - Data Bar

bunkersoldier

New Member
Joined
Mar 26, 2014
Messages
4
Does anyone know how to show different colours on a data bar conditional format?
I want to have the bar green if the value is over 75, amber for between 60 and 75 and red if below 60. But at the same time retaining the the functionality of the Data Bar Conditional Format.

Cheers
John
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]Data 1[/TD]
[TD="align: center"]Data 2[/TD]
[TD="align: center"]Data 3[/TD]
[TD="align: center"]Data 4[/TD]
[/TR]
[TR]
[TD]Under 60[/TD]
[TD="align: center"]53[/TD]
[TD="align: center"]38[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]83[/TD]
[/TR]
[TR]
[TD]60 - 75[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD]Over 75[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]

Hello Soldier :)

In cells for 60-75 place the following formula =if(and(B$1>=60, B$1<=75),B$1,"")
In cells for Over 75 place the following formula =if(B$1>75, B$1,"")

Then select the table, choose a column bar graph, right-click one of the bars, select format data series and write 100% for overlapped.

Done!

Hope this help.


Vândalo.
 
Upvote 0
Thanks for the help Vandalo, however I am trying to do this with the Data Bars Conditional Formatting. I want 1 column on my report to show the data bars with other data in other columns. The issue is that I am only able to create the data bars with a single colour and I want it to change colour based upon the data value.
 
Upvote 0
leaving the cursor on A2
1) click open conditional formatting Icon,
2) select "New rule",
3) select "Use a formula to select which cell to format"
4) =if(and(B$1>=60, B$1<=75),B$1,"")
5) and set format to be Green, OK, OK

Then repeat steps above 1-3
but this time for Red background
2)=if(B$1>75, B$1,"")

and set format to be red, OK, OK

This will make the cell black or the colour you choose for the last month onward
 
Upvote 0

Forum statistics

Threads
1,223,632
Messages
6,173,472
Members
452,516
Latest member
archcalx

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