+ Reply to Thread
Results 1 to 4 of 4

Conditionally Format Bars

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Atlanta
    MS-Off Ver
    2013
    Posts
    21

    Conditionally Format Bars

    I have a bar chart with two bars. These values are changing continuously. Is there a way I can conditionally format the chart so that the bigger bar is green?

    Thank You

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Conditionally Format Bars

    You should be able to double click the bar you want to change then select fill, solid fill, then click the dropdown for Color and select the color you want.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Conditionally Format Bars

    The easiest way to do this is not to use a chart at all (the old fashioned way!)
    Use the REPT function to create the 2 bars
    Then conditionally format based on whether value A or value B is the greater

    See attached workbook and try different values in A3 and B3

    The trick:
    1. Formulas in cell A1 and B1 respectively:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    2. Cells A1 and B1 font = Marlett

    3. Cells A1 and B1 conditionally formatted based on relative values of A3 and B3

    so dependent on whichever value is greater, either A1 or B1 is conditionally formatted green
    trickery.jpg


    Otherwise, here is a good place to start reading
    Attached Files Attached Files
    Last edited by kev_; 06-30-2017 at 01:14 PM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

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

    Re: Conditionally Format Bars

    Create a chart with 2 series and control the data points with formula.

    Format the colour of each series and set the series overlap to 100
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ 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. Replies: 1
    Last Post: 01-04-2017, 06:00 PM
  2. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  3. Replies: 1
    Last Post: 07-03-2014, 06:33 AM
  4. [SOLVED] Macro to conditionally format
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2013, 01:20 PM
  5. Format Conditionally with VBA
    By pilotwings64 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2012, 05:09 PM
  6. Trying to conditionally format
    By Speedbird1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2008, 10:17 PM
  7. [SOLVED] conditionally format cells
    By elad in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2005, 01:06 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