+ Reply to Thread
Results 1 to 5 of 5

Conditional Formating (Pass,Fail and Highlight) Cell Range witl rules for a range of cells

  1. #1
    Registered User
    Join Date
    04-11-2015
    Location
    Louisiana, United State
    MS-Off Ver
    2013
    Posts
    3

    Cool Conditional Formating (Pass,Fail and Highlight) Cell Range witl rules for a range of cells

    Hi everyone. Thanks in advance.

    I am trying to conditionally format a range of cells by applying Westgard rules for quality control in a clinical setting. The rules are as follows:

    1. If value is within ± 2SD, then it "Pass" with green highlight
    2. If value is greater than ± 3SD, then it "Fail" with red highlight
    3. If value is greater than ± 2SD but less than ± 3SD, check range to see if two consecutive results (including itself) is greater than 2SD on the same side of the mean (i.e. +2SD). If so, "Fail".
    4. If not, check to see if two consecutive results (including itself) in the range are greater than 2SD on opposite sides of the mean (> +2SD and < -2SD). If so, "Fail".
    5. If not, check to see if the value is greater than ± 4SD from mean. If so, "Fail".
    6. If not, "Pass"

    Attached if a flow chart of how I would like the rules to be setup.

    1-2S: Result between ± 2SD and ± 3SD From the assigned Mean
    1-3SD: Result Greater than 3SD from the assigned mean
    2-2S: Results between 2SD and 3SD as compared to the previous result; If 2 consecutive results are greater than 2SD on the same side of the assigned mean.
    R-4S: Results between 2SD and 3Sd as compared to the previous result; If 2 consecutive results are greater than 2SD on opposites sides of the assigned mean.

    Disregard 4-1S and 10X. If R-4S is No, Accept Run (Pass).

    I've also attached an excel file to show how my spreadsheet is setup. I've also attached a guide that better explains the rules that I am trying to apply.

    Example spreadhseet.xlsx
    glb_bci_152294.pdf
    Flow chart.png

    Thanks again in advance. If I need to clarify anything, please let me know.

  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
    53,048

    Re: Conditional Formating (Pass,Fail and Highlight) Cell Range witl rules for a range of c

    I am unable to open your file, can you upload again please?
    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
    04-11-2015
    Location
    Louisiana, United State
    MS-Off Ver
    2013
    Posts
    3

    Re: Conditional Formating (Pass,Fail and Highlight) Cell Range witl rules for a range of c

    I just tried opening it and it worked. But here it is again.

    Example spreadhseet.xlsx

    Thanks.

  4. #4
    Registered User
    Join Date
    04-11-2015
    Location
    Louisiana, United State
    MS-Off Ver
    2013
    Posts
    3

    Re: Conditional Formating (Pass,Fail and Highlight) Cell Range witl rules for a range of c

    I just tried opening it and it worked. But here it is again.

    Attachment 388789

    Thanks.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Conditional Formating (Pass,Fail and Highlight) Cell Range witl rules for a range of c

    I think I catch your mid, except this:

    5. If not, check to see if the value is greater than ± 4SD from mean. If so, "Fail".
    because I could not find either where 4SD value is in the table or sample for this case.

    Therefore I disregard it from my solution.

    Try in G2:

    Please Login or Register  to view this content.
    Quang PT

+ 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. How to make a cell display "FAIL" when range of cells is FAIL
    By crazychile in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-18-2017, 04:13 PM
  2. How to count PASS/FAIL cells in a range...
    By dtvonly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2014, 12:16 PM
  3. 3+ Conditional Formatting Rules for cell range based on Formula from other cells
    By osborsm9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2013, 08:48 PM
  4. Conditional formatting - highlight range of cells when it equals a cell
    By kingkong321 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2012, 05:13 AM
  5. Replies: 13
    Last Post: 09-29-2008, 10:36 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