Column charts - format colour by value

B

Bernster

Is there a way of formatting a column by the value - eg green for >= 98%, red
for <98%?
 
S

ShaneDevenshire

Hi,

There are two possible questions here -
1. Can you format the entire column green if it goes above 98%
2. Can you format the part of the bar that goes above 98% green while
leaving the remainder red.

For the first one -
Suppose the series in question is in cell B2:B100
Then in cells C2:C100 enter the formula
=IF(B2>=98,B2,0) and copy it down
In the cells D2:D100 enter the formula
=IF(B2<98,B2,0) and copy it down
Highlight these new ranges and the x-axis label range, but exclude the
B2:B100 range, and chart your data.
Format one series to Green and one to Red.

For the second -
You can use a stacked column chart for this one
Using the same range as above enter one formula:
=IF(B2>98,B2-98,0)
and the other
=IF(B2<=98,B2,98)
to plot the data in C:D and the labels but make the chart a stacked column.
You may need to switch the series so that the correct one is on top. In
2003 double-click the series and select the Series Order tab, make the
necessary adjustments.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top