+ Reply to Thread
Results 1 to 12 of 12

Colour change column chart based on cell colour

  1. #1
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Colour change column chart based on cell colour

    Hi

    I have a training record that contains %Compliancy in column D, the cells are conditionally formatted to be either red, orange or green based on a certain tolerance. I have then created a simple cluster column chart to show all the subjects and their compliancy.

    Is it possible for each column in the chart to reflect the colour of the conditionally formatted cell (original data source)?

    Thank you

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Colour change column chart based on cell colour

    Have a look at these methods.
    http://peltiertech.com/Excel/Charts/...nalChart1.html

    You will need to use the same logic applied to the Conditional formatting on the chart data cells in order to determine which series should plot the data.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Colour change column chart based on cell colour

    Thank you, I've found an example of how i would like my chart look and will work give it a try.

    Many Thanks

  4. #4
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Colour change column chart based on cell colour

    I've just tried it and the colours do not automatically change, they need to be manually changed. I want the columns to automatically change colour in line with the conditionally formatted data.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Colour change column chart based on cell colour

    post example of what you have created. If the data series are based on formula then the chart should update automatic when the sheet recalculates.

  6. #6
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Colour change column chart based on cell colour

    I have attached a draft copy of the spreadsheet.
    Draft.xls

    I want the chart columns to reflect the colour of the data, i.e if the % for fire safety falls into the red variance then i want the column for fire safety to also turn red.

    Hope this makes sence.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Colour change column chart based on cell colour

    First change the values in Draft!G7 and G8 to be percentages rather than integer values.

    Although the data in column B and C is linked to a workbook on your pc the formula is working.

    If you change B10 to 127 and C10 to 127 you will get a different bar showing.

  8. #8
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Colour change column chart based on cell colour

    But I need the chart's bars to also show red, orange or green - automatically, without having to manually change each bar to a colour.

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Colour change column chart based on cell colour

    In the attached I have replaced your values with random ones so you can see the chart updating and plotting 1 of the 3 series for each category.
    Attached Files Attached Files

  10. #10
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Colour change column chart based on cell colour

    That is how I want it too look, but how did you get the colours to change?? I've tried everything!

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Colour change column chart based on cell colour

    You have to manually format the 3 different series to get red/orange/green.

    But once the columns have been formatted the formula is controlling which 1 of the 3 data points is shown for each category. In the cells where #N/A is displayed the column of the chart is zero and therefore not visible.

  12. #12
    Forum Contributor Alice21's Avatar
    Join Date
    04-22-2010
    Location
    Wales, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    173

    Re: Colour change column chart based on cell colour

    FAB!! That's helped alot.

    Many Thanks

+ 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