+ Reply to Thread
Results 1 to 12 of 12

Conditional Formating with percentages increase

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question Conditional Formating with percentages increase

    Hi,

    I need to analise the following:

    Average "week 26" "week 27" "week 28"
    13 24 14 23


    Then I need to make a conditional format like this for every week:

    Red: > 20 % increase of the Average
    Yellow: > 10 % and <= 20 % increase of the Average
    Green: <= 10 % increase of the Average


    Can you help me please?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formating with percentages increase

    Entered in this order (they'll appear in the reverse order), using formula
    Red =(B2-$A2)/$A2>20%
    Yellow = AND(ISNUMBER(B2),(B2-$A2)/$A2<=20%)
    Green = AND(ISNUMBER(B2),(B2-$A2)/$A2<=10%)
    Manage rules and Check "Stop if true"

    CondFormat.jpg
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-23-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Formating with percentages increase

    Hi,

    Thanks! It worked perfectly!
    I have one more doubt.

    What about if instead oh numbers it was %, like this:

    Average "week 26" "week 27" "week 28"
    13% 24% 14% 23%


    And I would like to see this colours:
    Red: > 10 % variation
    Yellow: > 2 % and <= 10 % variation
    Green: <= 2 % variation

    ---------- Post added at 06:27 AM ---------- Previous post was at 04:27 AM ----------

    Hi,

    Also I'm triyng to change the first conditional formating to this case:
    Average "week 26" "week 27" "week 28"
    13% 24% 14% 23%

    Red: > 10 % decrease
    Yellow: > 0 % and <= 10 % decrease
    Green: <= 0 % decrease


    If you can explain to me the diference to the first configuration, please, i'll be glad to learn.
    Last edited by dharma710; 07-24-2012 at 05:50 AM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formating with percentages increase

    Average "week 26" "week 27" "week 28"
    13% 24% 14% 23%

    And I would like to see this colours:
    Red: > 10 % variation
    Yellow: > 2 % and <= 10 % variation
    Green: <= 2 % variation
    I'm not sure what you mean by 10% variation. For the example given, Wk 26 would be red,27 green and 28 red? Instead of
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-23-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Formating with percentages increase

    That last thing didn't worked.

    I'm going to explain the 2 diferente cases:

    1st:
    ----------------------------------------------------------------------
    Fixed..week 26....week 27....week 28
    95%.......94%........92%.......4%


    I need to make a conditional format like this for every week comparing with "Fixed" column:

    Red: > 10 % variation
    Yellow: > 2 % and <= 10 % variation
    Green: <= 2 % variation


    ----------------------------------------------------------------------



    2nd:
    ----------------------------------------------------------------------
    Fixed..week 26....week 27....week 28
    95%.......94%........92%.......4%


    I need to make a conditional format like this for every week comparing with "Fixed" column:

    Red: > 10 % decrease
    Yellow: > 0 % and <= 10 % decrease
    Green: <= 0 % decrease

    ----------------------------------------------------------------------


    Can you please help me with this 2 distint cases?

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formating with percentages increase

    Examples work wonders. So if your fixed is 95%
    Option 1
    Red: > 10 % variation ie. values <85 or greater than 105?
    Yellow: > 2 % and <= 10 % variation values between 85 and 105? (excluding below)
    Green: <= 2 % variation values between 93 and 97%?

    Option 2
    Red: > 10 % decrease <85%
    Yellow: > 0 % and <= 10 % decrease 85 to 95
    Green: <= 0 % decrease >= 95%
    Is that all correct?

  7. #7
    Registered User
    Join Date
    07-23-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Formating with percentages increase

    Yes, it is that.
    Last edited by Cutter; 07-26-2012 at 12:24 PM. Reason: Removed whole post quote

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formating with percentages increase

    Take a look at this spreadsheet. I set up the conditional formatting for both options you presented. Let me know if you have any questions.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-23-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Formating with percentages increase

    Hello,

    1st case worked perfectly!
    But 2nd case, didn't work the yellow one. Can you see if every formula it's correct please?

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formating with percentages increase

    Hi dh,
    Doesn't work in your spreadsheet or doesn't work on the example I posted? When I look at it, wk 27 and 28 at 10 and 14% show as yellow. If it's on your spreadsheet, make sure that your conditions are in the same order as mine and that they are checked for Stop if true.

  11. #11
    Registered User
    Join Date
    07-23-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Formating with percentages increase

    It's in my spreadsheet.
    For example, in mine I have this numbers:
    Fixed..week 26....week 27....week 28
    100%.......97%........25%.......100%

    With this rules:
    Red: > 10 % decrease
    Yellow: > 0 % and <= 10 % decrease
    Green: <= 0 % decrease


    In the week 26, I have a decrease of 3%, so that cell should be yellow, but it isn't.

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formating with percentages increase

    So take a good look at how I set up the rules in mine. Are you're in the same order? are the checkboxes checked? If you can't find a descrepancy, you'll need to upload the sheet (Go Advanced>Manage Attachments)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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