+ Reply to Thread
Results 1 to 3 of 3

Dynamic statistics

  1. #1
    Registered User
    Join Date
    07-30-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    46

    Dynamic statistics

    Hi all,

    Please find attached 'pseudo-sheet'.

    Essentially I have a table of data with many columns. Elsewhere I have an xlookup to bring over specific columns using a dropdown list.

    I want to DYNAMICALLY run a T-test on the gathered data from the dropdown results.

    i.e. in the attached sheet,
    -If I select '1' in K5, it pulls up data below from column B <---happy with this
    -If I select '2' in L5, it pulls up data below from column C <---happy with this

    Using the Analysis ToolPak add-in, I can then create a t-test table from the resultant data now in K5:K23 and L5:L23 ...however when I update the data in those cells (using the dropdown) the t-test does not dynamically update

    Can this be done?

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Dynamic statistics

    Yes, this can be done. Each of the outputs in the analysis tool pack's t-test output can be calculated using various Excel functions and formulas. I don't recall offhand how to calculate all of them (I am hoping you have enough knowledge of statistics to answer that part of the question), but I know they can all be calculated using worksheet functions and formulas. For example, the mean for each is simply the AVERAGE() function. The variance for each is the VAR() function. The pooled variance is a weighted average of the two variances =SUMPRODUCT(O8:P8,O9:P9)/SUM(O9:P9), and so on through the rest of the output table. In case you are unaware, Excel has several built in functions related to the t distribution (T.DIST(), TTEST(), and so on -- see list of statistical functions here: https://support.microsoft.com/en-us/...rs=en-us&ad=us ) that will probably be useful as you recreate the calculations performed by the analysis toolpack.

    From there, are there specific formulas you need help with?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    07-30-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    46

    Re: Dynamic statistics

    lol, I stupidly forgot I could do it the long way! - yeah I can do it this way... but if there is a dynamic way anyone can recommend, that would be very much appreciated! - I'll work on the slow way in the meantime

+ 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. Statistics help
    By aharmel1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2018, 06:10 PM
  2. Statistics.
    By Panisher21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2018, 04:30 PM
  3. Replies: 1
    Last Post: 07-20-2012, 06:55 AM
  4. Statistics
    By chiller in forum Excel General
    Replies: 6
    Last Post: 05-23-2010, 10:11 AM
  5. statistics help
    By capt_nemo777 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-31-2009, 12:44 AM
  6. [SOLVED] Statistics in Excel?
    By [email protected] in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-26-2006, 08:10 AM
  7. p-value, statistics
    By wim rademakers in forum Excel General
    Replies: 1
    Last Post: 01-17-2006, 10:30 PM

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