+ Reply to Thread
Results 1 to 10 of 10

Help with combinations

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    Brazil
    MS-Off Ver
    Office 2010
    Posts
    12

    Help with combinations

    Hi all,

    i need a help to make some combinations. Are there any way to excel make automatically all combinations possibles into a range ?

    For example, all possible combinations between columns test 1 and test 2.

    Tks.
    Attached Files Attached Files
    Last edited by vidaLL; 10-25-2013 at 12:06 PM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with combinations

    copy paste below in D4 then hold control and shift together and hit enter to make it as array formula once you enter formula as array you will find curly braces surrounding your formula {} which cannot be entered manually
    =INDEX($A$2:$A$8,ROW($A1))&INDEX(TRANSPOSE($B$2:$B$8),,COLUMN(A$1))

    drag down and left to right
    Last edited by hemesh; 10-25-2013 at 01:27 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Help with combinations

    If you want to see the combinations in one column, then put this in C2:

    =INDEX(A:A,INT((ROWS($1:1)-1)/7)+2)&INDEX(B:B,MOD(ROWS($1:1)-1,7)+2)

    then copy down as far as you need to.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with combinations

    find attached
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with combinations

    To reverse the order use
    =INDEX(TRANSPOSE($A$2:$A$8),ROW(A1))&INDEX(TRANSPOSE($B$2:$B$8),,COLUMN(A1)) hold control and shift together and hit enter to make it array formula.
    only pressing control and enter in array formula will lead to error

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with combinations

    find the attached
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-24-2013
    Location
    Brazil
    MS-Off Ver
    Office 2010
    Posts
    12

    Re: Help with combinations

    Guys, thanks very much.
    All solutions worked perfectly.
    Tks very much again @hemesh and @Pete_UK

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Help with combinations

    You are welcome Vidal

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Help with combinations

    One way to get all combinations in the configuration that you gave is to create a matrix:

    Enter the letters from A to G down column A from A2 to A8.

    Enter the letters in row 1 from B1 to H1

    Select the range B2:H8 and enter this formula AND enter with Ctrl +Shift + Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The selected range will be filled with all possible combinations.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Help with combinations

    write at D2

    =IFERROR(INDEX($A$2:$A$8,COLUMN(A1))&INDEX($B$2:$B$8,ROW(1:1)),"")

    copy right and down

+ 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. Combinations
    By Dr.Appalayya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2012, 12:56 PM
  2. Finding possible combinations & listing the wanted combinations
    By Zoke in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 07-16-2012, 03:41 PM
  3. [SOLVED] all possible combinations
    By TravelDrome in forum Excel General
    Replies: 1
    Last Post: 04-25-2012, 06:42 PM
  4. How many combinations?
    By JLB329 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2007, 10:28 PM
  5. Combinations
    By osprey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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