+ Reply to Thread
Results 1 to 4 of 4

Possible combinations of data in an array, always only one row per each column

  1. #1
    Registered User
    Join Date
    10-09-2020
    Location
    Brno
    MS-Off Ver
    Excel for Mac 2016
    Posts
    3

    Possible combinations of data in an array, always only one row per each column

    Hi,
    I need to list all possible combinations of an array:

    A1 B1 C1 D1 E1
    A2 B2 C2 D2 E2
    A3 B3 C3 D3 E3

    The problem is, I need to list all the combinations of 1 to 5 values i. e. from A1 > through > B2 C3 E2 > till > A3 B3 C3 D3 E3,
    without repetition of a column in a single result.

    I mean I need to exclude results which contain the same letter twice - like A1 A2 or B2 B3 D3 or C1 C2 C3 etc.

    Does anyone have an idea?

    Many thanks!
    Last edited by JanFoo; 10-09-2020 at 08:59 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,022

    Re: Possible combinations of data in an array, always only one row per each column

    Try this code: I've assumed that your array is actually in cells A1 to E3, and that columns H:L are open for storing the combinations of values.

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    10-09-2020
    Location
    Brno
    MS-Off Ver
    Excel for Mac 2016
    Posts
    3

    Re: Possible combinations of data in an array, always only one row per each column

    Thanks a lot! It helped me to get what I needed.

  4. #4
    Registered User
    Join Date
    10-09-2020
    Location
    Brno
    MS-Off Ver
    Excel for Mac 2016
    Posts
    3

    Re: Possible combinations of data in an array, always only one row per each column

    Thanks a lot! It helped me to get what I needed :-)

+ 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. Store combinations in a sorted array, then print
    By Buzz1126 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2020, 12:47 PM
  2. Function/Array for combinations of numbers
    By Karnik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2019, 08:22 PM
  3. Replies: 8
    Last Post: 01-08-2017, 05:08 PM
  4. Array(s) with combinations
    By Guerolito in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2015, 03:36 AM
  5. [SOLVED] Matching unique column combinations of data with VBA
    By insomniac53 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-03-2015, 07:48 PM
  6. Replies: 2
    Last Post: 10-30-2012, 12:58 PM

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