+ Reply to Thread
Results 1 to 4 of 4

how to highlight outliers

  1. #1
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    how to highlight outliers

    I would like to request some help, in creating macro, which can find and highlight outliers based on the calculation logic below.

    I have dataset in one sheet

    calculation logic:
    if name's price (num1 -- Column B) are under high & low Range1's values (Column I & J), then leave cells blank, otherwise, if they are not between the range1's values (high and low), then highlight the prices in red.

    if name's price (num2 -- Column C) are under high & low Range2's values (Column I & J), then leave cells blank, otherwise, if they are not between the range2's values (high and low), then highlight the prices in yellow.

    I have attached a sample dataset with desired output highlighted.
    out_num.xlsm

    Please note, the actual dataset is more 5,000 lines of data records.

    Any help would be very much appreciated. Thanks.
    Last edited by missy22; 06-26-2014 at 11:34 AM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: how to highlight outliers

    Your sample dataset is a contradiction to your specified "calculation logic". See cell C5, C6, C9, and C12 which is under (C9 is over) high & low Range2's values, but is highlighted yellow. Please make sure the information you submit is accurate and provide updated instruction on the parameters of your workbook.
    Last edited by stnkynts; 06-26-2014 at 11:30 AM.

  3. #3
    Forum Contributor
    Join Date
    08-08-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    196

    Re: how to highlight outliers

    apology for the error and for not making my explanation clearer. Thanks for your feedback.

    if the num's values are between the ranges then leave the cells blanks, otherwise if nums are not under and are over the ranges value, then highlight the outliers.

    Hence, C5, C6 and C9 cells, are correctly highlighted as the nums are over the Range2 values. I have attached updated example file below, for further detail in the problem.
    out_num2.xlsm

    Please advise further. Many thanks.
    Last edited by missy22; 06-26-2014 at 11:36 AM.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: how to highlight outliers

    Your post is contradictory again.

    otherwise if nums are not under and are over the ranges value, then highlight the outliers.
    I believe you do want to highlight if the numbers are under the range's value. Try this:

    Please Login or Register  to view this content.

+ 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. Getting rid of data outliers
    By mwwoodm in forum Excel General
    Replies: 0
    Last Post: 05-10-2012, 08:47 PM
  2. sum and stdev outliers
    By gergleb in forum Excel General
    Replies: 0
    Last Post: 12-01-2011, 12:46 PM
  3. Excel 2007 : best fit line without outliers
    By bored in forum Excel General
    Replies: 3
    Last Post: 11-23-2010, 05:39 AM
  4. Boxplots with outliers
    By Confuzzled. in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-17-2006, 03:40 PM
  5. [SOLVED] outliers/histograms
    By Julie in forum Excel General
    Replies: 1
    Last Post: 01-14-2006, 03:30 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