+ Reply to Thread
Results 1 to 4 of 4

How to concatenate all combinations across 4 rows?

  1. #1
    Registered User
    Join Date
    07-31-2007
    Posts
    2

    How to concatenate all combinations across 4 columns?

    Hi,

    I have four rows of data, and need to export/produce every combination of each of the four rows.

    So if I had:

    X__A_____B
    1__Adam__Smith
    2__John___Mclaren

    It'd produce every combination possible, i.e. Adam Smith, Adam Mclaren, John Smith and John Mclaren.

    I need it to work for four columns however, not just two.

    Hope that makes sense. Thanks ever so much in advance for any help

    PS: Sorry about the rows/columns title error
    Last edited by HarveyC; 07-31-2007 at 06:04 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Extremely fixed format but....

    Please Login or Register  to view this content.

    rylo

  3. #3
    Registered User
    Join Date
    07-31-2007
    Posts
    2
    Thanks Rylo, you've saved a complete stranger a lot of time

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    I knew I'd worked out a dynamic way some time ago, but couldn't recall how I did it.

    As long as you don't go past column H (only 'cos that is where the output goes), this will expand / contract for the different number of rows / columns. Only restriction is that it takes its boundaries from the first row and the first column.

    Also sorts the output which may or may not suit.

    rylo

    Please Login or Register  to view this content.

+ 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