+ Reply to Thread
Results 1 to 4 of 4

Possible combinations

  1. #1
    Registered User
    Join Date
    04-21-2005
    Posts
    9

    Possible combinations

    I am trying to come up with a way to show all combinations for 4 numbers across 5 rows.
    POssible numbers are -1, 0,1,2
    The 5 rows will have one of these numbers Ex.
    -1, -1, -1, -1,-1
    -1, -1, 0, 1, 2
    etc.
    Is there a easier way to list the entire set of combinations?
    Thanks in advance for any help offered!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    In A1:E1, enter -1

    In A2 and copy across to D2: =IF( AND(B1 <> -1, B2 = -1), MOD(A1 + 2, 4) -1, A1)

    In E2: =MOD(E1 + 2, 4) -1

    Copy A2:E2 down to A1024:E1024.
    Last edited by shg; 02-22-2008 at 05:32 PM.

  3. #3
    Registered User
    Join Date
    04-21-2005
    Posts
    9
    Thank you so much! this is awesome.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You're welcome, glad it worked for you.

+ 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