+ Reply to Thread
Results 1 to 6 of 6

Fill colors of cells using Conditional formatting based on 3 criteria

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Norman
    MS-Off Ver
    2010
    Posts
    37

    Fill colors of cells using Conditional formatting based on 3 criteria

    Hi,

    I have a spread sheet3 with Application, Severity and Count as Column names. I want to define a table for each application and corresponding severity level and display colors based on number of cycles. If number of cycles for Critical, high issue is >1 then respective box in table fill Red Color else fill Green Color. For Medium and Low severity, if cycles >2 then display red in respective box else display Green.

    Example - As you see Sony shows Medium severity with 4 cycles in row 2, So M8 should be Red, and Critical severity has 4 cycles in row 6 so format K8 with Red.

    Over all task is, Ex: K8 represents Sony with Critical issues. So we look at data for Application name Sony and Severity be Critical and there corresponding number of Cycles. If any cycle value is >1 then format K8 with RED and if it is =1 format K8 with Green.

    If an application has more than one same severity(like Sony has 2 Critical issues in Row 6 and Row 26) den look for all corresponding cycles and even if one cycle > 1 den turn red for High in K8.


    Please help me with a solution.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Fill colors of cells using Conditional formatting based on 3 criteria

    this will count the levels
    =SUMIFS($C:$C,$A:$A,$J8,$B:$B,K$7)

    then if you use in a conditional format -
    =SUMIFS($C:$C,$A:$A,$J8,$B:$B,K$7)>1
    for red

    does that do what you are after

    But i think I'm not understanding the rule - which overides the green and makes the full row red regardless of the cycle count

    see attached
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    09-12-2014
    Location
    Norman
    MS-Off Ver
    2010
    Posts
    37

    Re: Fill colors of cells using Conditional formatting based on 3 criteria

    @etaf- This formula does not provide the exact solution. I see we are adding up the cycles and applying conditional formatting. I rather don't want to add the cycles but compare the highest of cycle in each criteria and if the highest crosses the limit then we turn corresponding cell to Red.

    Row 5 and 22 has Apple for Low severity level and both the cycles does exceed 3 (Red for >3, Green for <=3). So N9 should be Green. Can we determine the Max value rather than Sum

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Fill colors of cells using Conditional formatting based on 3 criteria

    This should work out the MAX with 2 criteria
    =MAX(IF(($A$2:$A$300=$J8)*($B$2:$B$300=K$7),$C$2:$C$300))
    as an array formula

    But I'm not sure this is the same as your first post

    can you describe each condition in turn please
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-12-2014
    Location
    Norman
    MS-Off Ver
    2010
    Posts
    37

    Re: Fill colors of cells using Conditional formatting based on 3 criteria

    This Formula worked perfectly right. Thank you

    So, what I meant in my first post was to find number of cycles for each criteria and even if one of them exceeds our limit then turn Red else Turn Green.

    Example - As you see Sony shows Medium severity with 4 cycles in row 2, So M8 should be Red, and Critical severity has 4 cycles in row 6 so format K8 with Red.

    Over all task is, Ex: K8 represents Sony with Critical issues. So we look at data for Application name Sony and Severity be Critical and there corresponding number of Cycles. If any cycle value is >1 then format K8 with RED and if it is =1 format K8 with Green.

    If an application has more than one same severity(like Sony has 2 Critical issues in Row 6 and Row 26) den look for all corresponding cycles and even if one cycle > 1 den turn red for High in K8.
    Hope I am clear this time.

    Regards

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Fill colors of cells using Conditional formatting based on 3 criteria

    excellent - thanks for the rep, glad its working as required

+ 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: 05-23-2013, 05:35 PM
  2. Using formulas/conditional formatting to change fill of cell based on two criteria
    By 121jessawatts in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-09-2013, 09:42 PM
  3. Conditional Formatting based on criteria in two cells
    By FloDuff in forum Excel General
    Replies: 3
    Last Post: 04-09-2013, 01:09 PM
  4. Replies: 3
    Last Post: 06-25-2012, 09:53 AM
  5. Fill cells with different colors based on different cell contents
    By mdeibel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2010, 10:09 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