Make bars on bar graph change color if limit passed

aragon123321

New Member
Joined
Jul 6, 2015
Messages
26
Is there any type of Macro or way in excel that can make a single bar on a bar graph change colors if it is passed a certain limit.

Right now my bar graph has data that is automatically updated every 10 minutes. Can we get it for a bar to change colors when a value in the range of where it is getting its data passes the value of another cell.

Thank you so much if anyone has any help to do this. I have excel 2010. :ROFLMAO:
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi,
You can do it like this.

I created two extra columns which I was going to put on the chart. One column has the values from the original series below the limit and the other has the data values above the limit. I then used a stacked bar chart to display both columns.

The data looked like this:

Excel 2013
ABC
1DataOKOver
20.821783#N/A0.821783
30.5220670.522067#N/A
40.0618910.061891#N/A
50.0462920.046292#N/A
60.6710420.671042#N/A
70.7026080.702608#N/A
80.836882#N/A0.836882
90.1155550.115555#N/A
100.0927790.092779#N/A
110.808828#N/A0.808828
Sheet1
Cell Formulas
RangeFormula
A2=RAND()
B2=IF(A2<0.8,A2,NA())
C2=IF(A2>=0.8,A2,NA())


Columns OK and Over are the ones on my chart. The #N/A values do not display and the two columns each have their own colour settings.

Bar%20Chart%20with%20Over%20Limit_zps1ssastqe.png
 
Upvote 0

Forum statistics

Threads
1,214,395
Messages
6,119,265
Members
448,881
Latest member
Faxgirl

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