+ Reply to Thread
Results 1 to 5 of 5

Generate combinations of multiple columns

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    USA
    MS-Off Ver
    2009
    Posts
    2

    Generate combinations of multiple columns

    I am trying to come up with a function that will give me all the different combinations of multiple columns. For example:

    Manager Action A From Side Menu
    Supervisor Action B From Top Menu
    Employee Action C

    What I need is a formula that can take this data from one worksheet and print out the combinations in a new worksheet. The new worksheet would look like this:

    Manager Action A From Side Menu
    Manager Action A From Top Menu
    Manager Action B From Side Menu
    Manager Action B From Top Menu
    Manager Action C From Side Menu
    Manager Action C From Top Menu
    Supervisor Action A From Side Menu
    ... etc.

    I can do this easily on 2 columns, but I can't figure out a formula for adding in the 3rd column. This needs to be scalable, as the number of rows and columns varies. I have been googling for hours with no success. Any help would be appreciated.
    Last edited by Codeasaurus; 07-08-2014 at 01:34 AM. Reason: correct mistakes, add clarity

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Generate combinations of multiple columns

    Please Login or Register  to view this content.

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,373

    Re: Generate combinations of multiple columns

    Maybe with formula like this? pls check th file attach
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Generate combinations of multiple columns

    find the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    07-08-2014
    Location
    USA
    MS-Off Ver
    2009
    Posts
    2

    Re: Generate combinations of multiple columns

    Thank you all for your replies. RCM, Thank you for your efforts.. I should have clarified that I needed a formula, not a macro. My apologies. Azumi, your function did not work as needed. nfisales (siva) Combinations.xlsx did the trick. Thank you!

+ 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. Using Macro to generate combinations in multiple columns
    By nirvanaic822 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2013, 06:30 AM
  2. Generate a table of all possible combinations
    By ElectroZman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2013, 09:17 PM
  3. Macros to generate all possible combinations
    By Nnamdi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2012, 07:41 AM
  4. Generate combinations
    By cjt_choccy in forum Excel General
    Replies: 6
    Last Post: 11-20-2011, 02:51 PM
  5. Generate combinations for a variable number of columns in order
    By q83 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2011, 04:17 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