+ Reply to Thread
Results 1 to 10 of 10

excel spreadsheet design for calculating occurrence in each of the 211876 combination

  1. #1
    Registered User
    Join Date
    04-10-2008
    Posts
    29

    excel spreadsheet design for calculating occurrence in each of the 211876 combination

    Hi

    I have a dataset storing 6 numbers in a row (where each number range from 1 to 50 and no duplication of number within each row). Totaling there is 1000 rows.

    e.g.
    Col A B C D E F
    1 2 11 12 49 50
    1 2 21 22 31 32
    1 2 21 22 23 24
    3 6 9 15 16 17

    I am going to build a spreadsheet showing all the possible combination (there are total 211876 combinations) and check the frequency of each combination draw from the database.

    how should i set my spreadsheet to make it easier to set formula / make it able to drag across column & rows?

    appreciate your help. currently i am only thinking to use countif function with 1st worksheet showing occurrence of each number (from 1 to 50),
    then setup 2nd worksheet to chainlink the different combination of each number in 1st worksheet to check occurence,
    then creating a 3rd spreadsheet to chainlink the combination of 2 figures....
    and keep doing.....
    Last edited by computeruser08; 01-31-2009 at 08:52 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    (there are total 211876 combinations)
    For 50 numbers choose 6 there are 15,890,700 combinations.

    Please explain again what you want to do.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-10-2008
    Posts
    29

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    i know to choose a combination of 6 numbers will be too much combination.
    so i decided to test only a 4-number combination which from formula, 49! / ( 4! * 45!) gives 211876 combination. i said from 1 to 50 just for avoidance of confusion, which now seems more confusing.

    i want to test if there is any statistical relationship between each combination. so i first i have find the frequency of happening in each combination.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    For 50 choose 4 there are COMBIN(50,4) = 230,300 combinations. Do you want to list those combinations?

  5. #5
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Mexico
    Posts
    200

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina


  6. #6
    Registered User
    Join Date
    04-10-2008
    Posts
    29

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    Thanks shg and Armando Montes. the combination excel is great!

    But now with the list of combination and my dataset, how should i structure to do the checking of frequency? since data set is having each number in one cell while the list of combination is each combination in one cell.

    i have attached the excerpt of the two in my excel. thanks.
    Attached Files Attached Files

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    Post a manually-created example of what you want, and explain how you did it.

  8. #8
    Registered User
    Join Date
    04-10-2008
    Posts
    29

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    i have attached a sample.

    i have a database sheet containing data starting from row 2. each row is one set.

    then on 1-fig sheet, i checked if 1 is included in the each set, then checked if 2 is included in each set, then checked if 3 is included in each set.....so on and so for....

    then on 2-fig sheet, i "try" (thinkking a better way to do the linkage/automation) to combine what i have on 1-fig to checked if 1,2 is included in each set, then checked if 1,3 is included in each set....so on and so for....

    the combination list is just containing the combination i want to checked using the above calculation.

    if use my above calculation, it will be very time consuming....do u think there is a better waythanks.
    Attached Files Attached Files

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    You could skip the second tab, and on the third tab use two header rows (one for each of the numbers):
    Please Login or Register  to view this content.
    The formula in A3 and copied right and down is

    =ISNUMBER(MATCH(A$1, database!$A2:$F2, 0)) * ISNUMBER(MATCH(A$2, database!$A2:$F2, 0))

  10. #10
    Registered User
    Join Date
    04-10-2008
    Posts
    29

    Re: excel spreadsheet design for calculating occurrence in each of the 211876 combina

    thanks shg!

+ 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