+ Reply to Thread
Results 1 to 6 of 6

A question, is it possible to have the bars on graph the same color as highlighted cell.

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    38

    A question, is it possible to have the bars on graph the same color as highlighted cell.

    Hi All,

    I have data which is conditional formatted in the range based on its progress.
    If completed, cell turns green. If in wip, the cell is amber, incomplete red.
    when I run a pivot table and chart it sure would be handy if the colors in the graph reflected the state as the data shows. Some cells change daily so filling manually would be a pain. (x axis is in hours)

    Is it possible to do this? It would be really neat.

    Thanks in advance for looking in and giving me some guidance.

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: A question, is it possible to have the bars on graph the same color as highlighted cel

    Hi,

    It can be done through VBA..but it would be too complex..
    It will change the chart color as per the cell.
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: A question, is it possible to have the bars on graph the same color as highlighted cel

    yes VBA can do it
    how complex would depends how complex your chart is
    perhaps a sample data/chart
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: A question, is it possible to have the bars on graph the same color as highlighted cel

    actually i remember doing something like this before

    see this thread
    http://www.excelforum.com/excel-prog...ormatting.html

    For a non VBA solution...you need to manipulate the data going into the chart
    http://peltiertech.com/tag/conditional-chart/
    Last edited by humdingaling; 07-22-2015 at 02:39 AM.

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: A question, is it possible to have the bars on graph the same color as highlighted cel

    Wow, great examples. Thank you for the reference humdingaling. I will play around with this on the weekend and see if I can do something similar. Great references.

    Thank-you very much.

  6. #6
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: A question, is it possible to have the bars on graph the same color as highlighted cel

    Please Click STAR to Add Reputation if my/someone's answer helped!
    Mark this thread as solved.

+ 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. [SOLVED] Bar Graph With 2 Axis - Bars On The Primary Axis Overlap Bars On The Secondary Axis
    By Variablez in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-11-2013, 08:38 AM
  2. Color bars in a bar graph based on a value
    By SueWithQuestion in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-06-2013, 12:15 PM
  3. Is it possible to assign a key to automatically fill color in the highlighted cell(s)?
    By Moonbather in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2013, 11:58 AM
  4. Create graph based on highlighted cell
    By xmmx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2011, 03:07 PM
  5. Adjusting bars in a bar graph
    By sliver in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-07-2009, 08:48 AM
  6. Is there a way to sort By highlighted cell color?
    By tvance929 in forum Excel General
    Replies: 4
    Last Post: 11-20-2007, 03:46 PM
  7. color top ranking three bars with different color in the same series of data
    By qwervbnmasdf in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-09-2007, 02:39 AM
  8. [SOLVED] How can I change a graph with 2 bars,2 lines to 3 bars, 1 line?
    By IOWAJulie in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-19-2005, 07:05 PM

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