+ Reply to Thread
Results 1 to 5 of 5

Conditional formating in Excel Charts.

  1. #1
    REvans
    Guest

    Conditional formating in Excel Charts.

    Can bar chart colors be tied to and change with a given criteria (a
    conditional format for graphs)?

    I am trying to color code variations in a waterfall chart (using Excel's Bar
    Chart). I would like to code bars associated with positive impacts in green
    and bars associated with negative inpacts (not negative numbers) in red.

    Thanks

  2. #2
    Don Guillett
    Guest

    Re: Conditional formating in Excel Charts.

    You can incorporate this within an if statement and even make automatic by
    putting in the worksheet_change event of the sheet code.

    Sub seriescolor()
    ActiveSheet.ChartObjects("chart 1") _
    ..Chart.SeriesCollection(1).Interior.ColorIndex = 3
    End Sub

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "REvans" <[email protected]> wrote in message
    news:[email protected]...
    > Can bar chart colors be tied to and change with a given criteria (a
    > conditional format for graphs)?
    >
    > I am trying to color code variations in a waterfall chart (using Excel's

    Bar
    > Chart). I would like to code bars associated with positive impacts in

    green
    > and bars associated with negative inpacts (not negative numbers) in red.
    >
    > Thanks




  3. #3
    REvans
    Guest

    RE: Conditional formating in Excel Charts.

    Thanks very much for the response, I will give it a shot

    "REvans" wrote:

    > Can bar chart colors be tied to and change with a given criteria (a
    > conditional format for graphs)?
    >
    > I am trying to color code variations in a waterfall chart (using Excel's Bar
    > Chart). I would like to code bars associated with positive impacts in green
    > and bars associated with negative inpacts (not negative numbers) in red.
    >
    > Thanks


  4. #4
    Jon Peltier
    Guest

    Re: Conditional formating in Excel Charts.

    Alternatively, you could try this approach, with multiple series, which
    does not rely on a macro being run to reflect changing values:

    http://peltiertech.com/Excel/Charts/...nalChart1.html

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

    Don Guillett wrote:

    > You can incorporate this within an if statement and even make automatic by
    > putting in the worksheet_change event of the sheet code.
    >
    > Sub seriescolor()
    > ActiveSheet.ChartObjects("chart 1") _
    > .Chart.SeriesCollection(1).Interior.ColorIndex = 3
    > End Sub
    >


  5. #5
    REvans
    Guest

    Re: Conditional formating in Excel Charts.

    Thank you for the response. My workaround is a bit cumbersome now. I am
    using separate data series for positive transactions and negative
    transactions (selected via conditional statements) coupled with ranking and
    lookup routines. It gets to a point when I think crayons and a straightedge
    provide the most direct solution.

    It appears that you have a great deal of valuable information at your site.
    Water-fall charts while a great tool to relay information, can be a pain.

    Thank you again.

    "Jon Peltier" wrote:

    > Alternatively, you could try this approach, with multiple series, which
    > does not rely on a macro being run to reflect changing values:
    >
    > http://peltiertech.com/Excel/Charts/...nalChart1.html
    >
    > - Jon
    > -------
    > Jon Peltier, Microsoft Excel MVP
    > Peltier Technical Services
    > Tutorials and Custom Solutions
    > http://PeltierTech.com/
    > _______
    >
    > Don Guillett wrote:
    >
    > > You can incorporate this within an if statement and even make automatic by
    > > putting in the worksheet_change event of the sheet code.
    > >
    > > Sub seriescolor()
    > > ActiveSheet.ChartObjects("chart 1") _
    > > .Chart.SeriesCollection(1).Interior.ColorIndex = 3
    > > End Sub
    > >

    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1