+ Reply to Thread
Results 1 to 2 of 2

Macro to highlight statistically significant values

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010 for Mac
    Posts
    1

    Macro to highlight statistically significant values

    Hello!

    I work with results from surveys, and I need to repeatedly highlight statistical significance skews. Obviously doing this manually leads to mistakes which lead to disaster. I would like help with writing a macro to run through a worksheet, and highlight all significant values in the worksheet with a specific colour (yellow). For this to happen there are a few things that need to occur:

    1) Excel needs to calculate if values are statistically significant (multiple samples) or not (Z Number greater than 1,96 or less than -1,96)

    2) If these values are significant, then the macro needs to highlight the relevant cells, as well as the cells that the proportions are relevant to.

    Can anyone please help?
    Gavin

  2. #2
    Registered User
    Join Date
    10-23-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Macro to highlight statistically significant values

    Hello,

    I'm not too familiar with all of the Statistics lingo, but I believe that you want to highlight any cell which is outside of the 96th percentile?
    If so, you would need to add two cells which calculate the 96th percentile, and the 4th percentile values.
    Then use conditional formatting to highlight any cell which is above or below these values.

    See attachment for example.
    Attached Files Attached Files
    STaylor
    The Man

+ 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: 0
    Last Post: 10-12-2012, 01:08 PM
  2. Modify macro to highlight max&min values
    By bigband1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2011, 07:41 AM
  3. Modify macro to highlight max&min values
    By bigband1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2011, 08:25 AM
  4. macro to highlight data containing certain values
    By sandbach in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-09-2010, 06:53 PM
  5. How to set significant figures when calculating values in code?
    By gonger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2009, 05:01 PM

Tags for this Thread

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