+ Reply to Thread
Results 1 to 3 of 3

Variable Bar Color?

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Port Charlotte, FL
    MS-Off Ver
    Excel 2011 (Mac)
    Posts
    14

    Variable Bar Color?

    Is it possible to have the columns in a stacked column chart be different colors based on their comparison to another value?

    I have the following table of values representing rainfall amounts for each year with an average of all years:
    Col A Col B Col C Col D Col E Col F Col G Col H Col I
    Row 1 Year 2010 2011 2012 2013 2014 2015 2016 Average
    Row 2 Rainfall 22.6 34.5 21.7 53.8 10.4 (empty) (empty) (empty)
    Row 3 Average (empty) (empty) (empty) (empty) (empty) (empty) (empty) 28.6

    I have a stacked column chart with 2 series: "Series 1" and "Series 2"
    Series 1 gets its values from B2 thru I2 and is colored blue
    Series 2 gets its values from B3 thru I3 and is colored red

    Is it possible, WITHOUT VBA or a macro, to have the Series 1 columns be blue if their value is above the value in cell I3, and be green if their value is below the value in I3?

    In my example, the columns for 2011 and 2013 would be blue, while the columns for 2010, 2012 and 2014 would be green.

    I have attached a sample Rainfall stats Example.xlsx file.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Variable Bar Color?

    Hello
    You could use 3 dummy series of data based off the original and use the NA() function. Format each series accordingly. See the attached example.

    DBY
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Variable Bar Color?

    Adding post to indicate that thread has a reply. For some reason it was showing zero replies.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change font color of a string that is a variable
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2011, 08:53 AM
  2. Using color as a 4th variable in surface charts
    By sfogarty in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-30-2009, 04:34 AM
  3. variable category label color
    By help100 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-10-2008, 09:53 AM
  4. variable color coding
    By austontatious in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-20-2008, 03:15 AM
  5. variable chart color by number value
    By David in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-11-2005, 09:05 PM

Tags for this Thread

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