+ Reply to Thread
Results 1 to 3 of 3

Attempting to combine multiple fields(columns) into all possible permutations

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    Durham, NC
    MS-Off Ver
    Excel 2011 Mac
    Posts
    3

    Attempting to combine multiple fields(columns) into all possible permutations

    Label combinations.xlsx

    I'm attempting to create a batch of nearly 600 labels from 5 fields. The excel sheet I've attached has the fields at the top inside the border and the cells below are the beginning of the list of combinations in the format I need them. Is there any way I can automate this process?

    Thanks in advance!

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Attempting to combine multiple fields(columns) into all possible permutations

    Try this small macro:

    Please Login or Register  to view this content.
    It will fill rows 9 thru 296 with the combinations.


    Macros are very easy to install and use:

    1. ALT-F11 brings up the VBE window
    2. ALT-I
    ALT-M opens a fresh module
    3. paste the stuff in and close the VBE window

    If you save the workbook, the macro will be saved with it.

    To remove the macro:

    1. bring up the VBE window as above
    2. clear the code out
    3. close the VBE window

    To use the macro from Excel:

    1. ALT-F8
    2. Select the macro
    3. Touch RUN

    To learn more about macros in general, see:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    Macros must be enabled for this to work!
    Gary's Student

  3. #3
    Registered User
    Join Date
    11-12-2012
    Location
    Durham, NC
    MS-Off Ver
    Excel 2011 Mac
    Posts
    3

    Re: Attempting to combine multiple fields(columns) into all possible permutations

    I got it working, thanks for the help!
    Last edited by pm079; 11-12-2012 at 03:54 PM. Reason: Fixed the problem

+ 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