Results 1 to 4 of 4

Conditionally Format Bars

Threaded View

  1. #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
    =REPT("g",A3/10)
    =REPT("g",B3/10)


    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

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