+ Reply to Thread
Results 1 to 6 of 6

Finding all combinations in a cells

  1. #1
    Registered User
    Join Date
    07-21-2016
    Location
    London
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2302 Build 16.0.16130.20806) 64-bit
    Posts
    94

    Finding all combinations in a cells

    Hi There,

    I'm looking for a VBA code that can find combinations from a list of cells. so Col A to C has numbers that I've put in 0 to 10 going down. In Column D onwards I want to show all possible combinations for those 3 Column I've inputed. 000,001,010,011,111, etc

    Please can you help ?

    Thanks a million.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Finding all combinations in a cells

    This lists [all values in A] [all values in B] [all values in C]
    It does NOT include [all values in C] [all values in B] [all values in A] etc
    - but if all values are in all columns then it may give you what you need

    Run in attached workbook with {CTRL}k

    This code puts all values in column D and unique combinations in column E:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 03-19-2018 at 08:25 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Finding all combinations in a cells

    Another method and more columns are allowed. (getting slower when columns are many).

    Condition:
    1) Should start from A1.
    2) All columns must have header.
    3) No blank column.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-21-2016
    Location
    London
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2302 Build 16.0.16130.20806) 64-bit
    Posts
    94

    Re: Finding all combinations in a cells

    Thanks Both, great stuff really appreciate it

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,464

    Re: Finding all combinations in a cells

    You are welcome.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Finding all combinations in a cells

    If that answers your question, please click ThreadTools@TopOfThread and mark thread SOLVED
    thanks

+ 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. Code for finding combinations
    By roadapples in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2017, 03:49 PM
  2. Help in finding combinations
    By Sravanthi8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2015, 07:47 AM
  3. Finding combinations of 8 letters
    By macaonghus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2015, 02:20 AM
  4. VBA - Finding unique combinations
    By xlsnovice in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-30-2013, 10:32 AM
  5. Finding possible combinations & listing the wanted combinations
    By Zoke in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 07-16-2012, 03:41 PM
  6. Finding unique combinations
    By jharaldson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2012, 11:40 AM
  7. Finding combinations that add up to X
    By mj6987 in forum Excel General
    Replies: 4
    Last Post: 04-07-2006, 07:20 AM

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