Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 20
Default plot 0 as green and < 0 as red

Excel 2002 SP3
Win XP HE

Hi,

In a column chart, how can I make the bars/columns where corresponding
data point is positive (zero or above) plot in green (or other color)
and columns where corresponding data point is negative, plot in red (or
a different color)?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default plot 0 as green and < 0 as red

I was so happy when I finally figured it out that I wrote a tutorial:

http://peltiertech.com/Excel/ChartsH...fNegative.html

I haven't tried figuring it out for Excel 2007 yet, though.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



"stef" wrote in message
...
Excel 2002 SP3
Win XP HE

Hi,

In a column chart, how can I make the bars/columns where corresponding
data point is positive (zero or above) plot in green (or other color) and
columns where corresponding data point is negative, plot in red (or a
different color)?
Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default plot 0 as green and < 0 as red

You can, with VBA code or my add-in, get the Invert If Negative to work but
you have to retain a fill pattern.
As soon as you set the fill to Solid the second color is lost.

http://www.andypope.info/charts/patternfills.htm

You can of course use the conditional chart approach. Having a series for
Positive and Negative values.

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Jon Peltier" wrote in message
...
I was so happy when I finally figured it out that I wrote a tutorial:

http://peltiertech.com/Excel/ChartsH...fNegative.html

I haven't tried figuring it out for Excel 2007 yet, though.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



"stef" wrote in message
...
Excel 2002 SP3
Win XP HE

Hi,

In a column chart, how can I make the bars/columns where corresponding
data point is positive (zero or above) plot in green (or other color) and
columns where corresponding data point is negative, plot in red (or a
different color)?
Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 20
Default plot 0 as green and < 0 as red

Thanks, Andy. Will definitely look into it.

Andy Pope wrote:
You can, with VBA code or my add-in, get the Invert If Negative to work
but you have to retain a fill pattern.
As soon as you set the fill to Solid the second color is lost.

http://www.andypope.info/charts/patternfills.htm

You can of course use the conditional chart approach. Having a series
for Positive and Negative values.

Cheers
Andy

  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 20
Default plot 0 as green and < 0 as red

Great. Thanks again!

Jon Peltier wrote:
I was so happy when I finally figured it out that I wrote a tutorial:

http://peltiertech.com/Excel/ChartsH...fNegative.html

I haven't tried figuring it out for Excel 2007 yet, though.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



"stef" wrote in message
...
Excel 2002 SP3
Win XP HE

Hi,

In a column chart, how can I make the bars/columns where corresponding
data point is positive (zero or above) plot in green (or other color) and
columns where corresponding data point is negative, plot in red (or a
different color)?
Thanks!





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to make a box and whisker plot (box plot) in Excel. rfsp Charts and Charting in Excel 2 April 3rd 07 02:57 PM
how to plot a polar chart / plot Aparna Charts and Charting in Excel 1 September 30th 06 12:38 PM
how do I create a box-plot (or whisker plot ) graph? raal Charts and Charting in Excel 1 August 8th 05 08:31 PM
Can I copy x-y scatter plot data direct from one plot to another? Chris Charts and Charting in Excel 2 June 3rd 05 01:20 PM
how 'come green isn't green? ericx Excel Discussion (Misc queries) 7 November 26th 04 02:49 PM


All times are GMT +1. The time now is 08:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"