+ Reply to Thread
Results 1 to 7 of 7

Stacked Conditional Formatting based on values from an IF statement?

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Stacked Conditional Formatting based on values from an IF statement?

    sample.jpg

    I am wondering how possible it is to do some sort of a conditionally formatted status indicator, such that "If Actual < Goal, Display <RED FILL or some icon>, Display Green Icon" . I have played with conditional formatting but it seems that it will only format a cell relative to some defined constant.

    Maybe there is an entirely better way to do this that I'm not aware of.. what do you all think as a solution? Any help would be a life saver!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Stacked Conditional Formatting based on values from an IF statement?

    Hi and welcome to the forum

    Take a look at using "use formule"

    =$D2<$C2 format fill read
    new rule (use formula)...
    =$D2>$C2 format fill green

    If you want the entire row to be highlighted, select the entire range 1st, then apply the rules
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: Stacked Conditional Formatting based on values from an IF statement?

    Thank you @FDibbins. I guess I am still a little confused where you find that feature? Also, you're saying to do a conditional format with multiple rules if I'm reading correctly, right?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Stacked Conditional Formatting based on values from an IF statement?

    Yes, that is what Im saying. Your profile indicates 2010, so you can use many rules

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$D2<$C2

    Repeat 3 & 4 for the other new rule

  5. #5
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: Stacked Conditional Formatting based on values from an IF statement?

    Thank you so much for the clarifications... I'll try it out and return with reps when i get it working. Thank you!

  6. #6
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: Stacked Conditional Formatting based on values from an IF statement?

    One last follow up question.. Say I have 7 rows in a template, and want people to be able to enter 3-7 of these metrics. When I have the >= operator, it formats the blank columns. Is there any way to add a qualifier for "If no data then no format" ?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Stacked Conditional Formatting based on values from an IF statement?

    Maybe this...
    =and(D2<>"",$D2<$C2)
    I selected D2, figuring you will always have a budget, but might not yet have an actual

+ 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: 2
    Last Post: 10-02-2013, 04:31 PM
  2. Replies: 1
    Last Post: 10-02-2013, 02:36 PM
  3. Conditional formatting based on values in A1:A6
    By kpierce in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2011, 11:44 AM
  4. Conditional formatting for Stacked Bar Chart
    By walrasianxl in forum Excel General
    Replies: 6
    Last Post: 02-04-2011, 11:35 AM
  5. [SOLVED] Conditional formatting based on if statement.
    By kevin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 12:06 AM

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