+ Reply to Thread
Results 1 to 5 of 5

Basic Statistics Help Please

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Basic Statistics Help Please

    Fellow Forum Members,
    I'm the kind of person that has always pronounced the word "statistics" as "sadistics". Nevertheless, I need to figure something out that invovles statistics and I'm wondering if Excel 2003 is the right tool. My objective is to figure out the total quantity of combinations the number range 1 through 44 has when it's combined with a second number range that also has number values of 1 through 44. I don't know what the statisical forumla is, but does Excel 2003 provide the function needed to figure this out? Better yet, can it generate a list of all the number combinations existing between two number sets made up of values 1 through 44 combined. Any help will be greatly appreciated. Thanks.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    the "formula" for the number of combinations of two sets of 44 items

    44*44 = 1936

    As for listing out the combinations I'm not sure.
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Ok you have the answer that if you are picking 1 from each range the answer is 1936

    If you put =INT((ROW(a1)-1)/44)+1 in cell A1 and =MOD(ROW(a1)-1,44)+1 in cell b1 then select both and copy down to row 1936, they are all your possible combinations

    Regards

    Dav

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333

    Thumbs up

    Damn Dav that's AWESOME!!!

  5. #5
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Excelenator

    Not really, if i knew what i was doing, with macros like you do (you provided me with one yesterday, thanks again) it would be quicker doing 2 nested do loops, something along the lines of:

    range("a1").select

    for i = 1 to 44
    for j = 1 to 44
    Selection.Offset(x, 2).Value = i
    Selection.Offset(x, 3).Value = j
    x = x + 1
    next j
    next i


    As i said my macro writing is not good, but i finally get on a course in a month so it should improve. i bet you could have changed this into the solution quicker than i wrote the formula. But as I said before I am ok with formulas but rubbish with macros

    Regards

    Dav

+ 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