Conditional Format Chart

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 8 of 8

Thread: Conditional Format Chart

  1. #1
    New Member jckenney's Avatar
    Join Date
    Nov 2013
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Conditional Format Chart

     
    Question to the experts.

    I have created a bar chart and I'd like to have the color of the vertical bar change in color when the value 25K has been reached or exceeded.

    Is this task even possible?


    Cheers James
    Last edited by jckenney; Jun 26th, 2016 at 11:27 AM.

  2. #2
    Moderator mole999's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    8,334
    Post Thanks / Like
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

    have a look at peltier charts, i can think if you know which bar it will always be you could drive it from VBA, but it maybe possible
    • Yes I know there are better ways to do it. I just wish I knew them. - 2003, 2007, 2010, 2013 & 2016
    • I wear my ignorance openly, excel is not my chosen career, its a means to an ends
    • Posting Guidelines Want to post well laid out questions and answers Translate Excel Versions
      Code:
      [CODE ]Put Your Code[/ CODE]
    • Settings > General Settings (on the left) scroll to the bottom, > Miscellaneous Options > Use ENHANCED
    • X-Posting Guidelines Rule 13 > CHART STUFF

  3. #3
    New Member jckenney's Avatar
    Join Date
    Nov 2013
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

    Actual Hours Critical Hours
    Cell 1 Cavity #1 PM #1 25000 25000
    PM #2 19000 25000
    PM #4 18000 25000
    PM #5 26000 25000
    PM #6 22000 25000

  4. #4
    Board Regular
    Join Date
    Jan 2014
    Location
    Pittsburgh
    Posts
    720
    Post Thanks / Like
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

    The easiest method is to create two new columns containing simple formulas.
    Excel 2012
    C D E F G
    1 Actual Hours Critical Hours Not Critical Over Critical
    2 PM #1 25000 25000 0 25000
    3 PM #2 19000 25000 19000 0
    4 PM #4 18000 25000 18000 0
    5 PM #5 26000 25000 0 26000
    6 PM #6 22000 25000 22000 0
    Sheet1

    Worksheet Formulas
    Cell Formula
    F2 =IF(D2 < E2, D2, 0)
    G2 =IF(D2 >= E2, D2, 0)


    Select columns C, F, and G and insert a stacked bar chart.
    Last edited by thisoldman; Jun 26th, 2016 at 12:34 PM.

  5. #5
    MrExcel MVP
    Join Date
    May 2003
    Location
    USA
    Posts
    4,400
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

    y tutorial on this topic is at Conditional Formatting of Excel Charts.
    Jon Peltier
    Peltier Technical Services, Inc.
    Try Peltier Tech Charts for Excel

  6. #6
    New Member jckenney's Avatar
    Join Date
    Nov 2013
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

    Jon, The above scheme works although it's not actually what I wanted the chart to look like.

    I'd like a stacked chart to change at 25k and display red above that value. I'm at a loss

  7. #7
    MrExcel MVP
    Join Date
    May 2003
    Location
    USA
    Posts
    4,400
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

    So then the formula in the first column is MIN(Value, 25000) and in the second column is MAX(0, Value-25000). Stack these and you're golden.

  8. #8
    Board Regular
    Join Date
    Jan 2014
    Location
    Pittsburgh
    Posts
    720
    Post Thanks / Like
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Conditional Format Chart

      
    Something like this?



    Excel 2012
    CDEFG
    1Actual HoursCritical HoursNot CriticalCritical
    2PM #12500025000249991
    3PM #21900025000190000
    4PM #41800025000180000
    5PM #52600025000249991001

    Sheet1



    Worksheet Formulas
    CellFormula
    F2=MIN(D2, E2-1)
    G2=MAX(D2-F2, 0)

    Last edited by thisoldman; Jun 27th, 2016 at 12:08 AM.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com