+ Reply to Thread
Results 1 to 3 of 3

Creating a formula that modifies itself based on number of samples.

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    Hillsboro, Ohio
    MS-Off Ver
    Excel 2000
    Posts
    4

    Creating a formula that modifies itself based on number of samples.

    I am trying to create a form that peforms 95% UCL statistical analysis for a varying number of sample points. I am trying to create a spreadsheet that will put the proper Student T in the formula. I have already created a form that works but only if you select the correct form for the number of samples that you collected.

    For example:
    If 6 samples are taken then the formula is =(A35+2*(A44/SQRT(6)))
    If 3 samples are taken then the formula is =(A35+2.9*(A39/SQRT(3)))

    If i make A1 a cell that gives me the number of samples (between 2 and 9) how can i get the formulas above to insert the correct Student T?

    The Student T Chart for the number of samples is as Follows:
    2=6.3
    3=2.9
    4=2.4
    5=2.1
    6=2.0
    7thru 9=1.9

    I am using Excel 2000 if that matters.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Creating a formula that modifies itself based on number of samples.

    Hi tdurton,

    If you add your Student T Chart to another worksheet, you'll be able to use the LOOKUP function in place of the student T in your formula.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating a formula that modifies itself based on number of samples.

    Quote Originally Posted by tdurton View Post
    If 6 samples are taken then the formula is =(A35+2*(A44/SQRT(6)))
    If 3 samples are taken then the formula is =(A35+2.9*(A39/SQRT(3)))

    If i make A1 a cell that gives me the number of samples (between 2 and 9) how can i get the formulas above to insert the correct Student T?

    The Student T Chart for the number of samples is as Follows:
    2=6.3
    3=2.9
    4=2.4
    5=2.1
    6=2.0
    7thru 9=1.9
    This formula converts your table above into a formula:
    =LOOKUP(A1, {2,3,4,5,6,7}, {6.3,2.9,2.4,2.1,2,1.9})

    This inserts it into the original formula:
    =(A35 + LOOKUP(A1, {2,3,4,5,6,7}, {6.3,2.9,2.4,2.1,2,1.9}) * (A44 / SQRT(A1)))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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