• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Varying bar graph color for values above and below zero

Hi,

I have a bar graph which takes values from a slider. What I need is to show is that values below zero in the bar graph should be in red and above should be in green. The challenge is that as the slider moves, the values change (as above or below zero) and I want them displayed in different colors depending on whether they are above or below zero.

Can anyone help please? I don't know if I have explained myself well but I can clarify.

Thanks
S
 
Hi there,

You can try doing the following:
  • Create a new sheet for your dashboard calculations
  • make a little table where you have 2 rows, populated with formula's to split the positive from the negative numbers (*)
  • select this table and create a stacked bar-chart
  • Format the chart as you see fit

The formula's can look like this:
Code:
=IF(A1>=0,A1,NA())
for the positive row
Code:
=IF(A1<0,A1,NA())
for the negative row
 
Back
Top