+ Reply to Thread
Results 1 to 3 of 3

Macro/Plugin to generate all possible permutations

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2016
    Posts
    1

    Macro/Plugin to generate all possible permutations

    I have a list of different items listed in Column A along with its Lower and Upper bound values in Column B & C respectively.

    I need to generate all possible permutations and enumerate them in different columns as shown in the image.

    Permutations.JPG

    Is there any plugins or Macro Codes available to do the above function?

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Macro/Plugin to generate all possible permutations

    Maybe :
    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Macro/Plugin to generate all possible permutations

    In D1, put the formula =C1 and drag down to C4

    In E1, put the formula =IF(D2>=$C2,IF(D1>=$C1,$B1,D1+1),D1) and drag it down and right as far as needed.

    Note that C5 needs to be empty.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. 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. Macro for permutations of text
    By iceducky199 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2015, 11:28 AM
  2. Creating combinations or permutations with a macro
    By kufta4 in forum Excel General
    Replies: 3
    Last Post: 10-02-2015, 02:53 PM
  3. Anyone using Tatvic plugin?
    By Fermented Reptile in forum Excel General
    Replies: 1
    Last Post: 11-24-2014, 08:39 AM
  4. [SOLVED] Pls help noobie generate a whole buncha permutations
    By yeehawlm in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-22-2013, 01:50 AM
  5. Help with macro or function for permutations
    By mgolden in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2011, 10:44 AM
  6. Macro for permutations/combinations?
    By svs9j in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2010, 09:34 AM
  7. Generate permutations but delete double entries
    By as_sass in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2006, 02:35 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