+ Reply to Thread
Results 1 to 6 of 6

Function/Array for combinations of numbers

  1. #1
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Function/Array for combinations of numbers

    Hi Experts
    Function to use numbers in a rows to give combinations


    Objective is to make combination (small to larger) for following
    2 7
    3 6
    1 4 8

    only one number from each above rows & smallest to big
    1 2 3
    2 3 4
    2 3 8
    1 3 7
    3 4 7
    3 7 8
    1 6 7
    4 6 7
    6 7 8

    Thanks
    Karnik
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Function/Array for combinations of numbers

    Do you realy need to have it done with formulas?
    Will be not that easy (in my opinion).
    While VBA solution shall be rather strightforward.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Re: Function/Array for combinations of numbers

    Hi Kaper,

    Thank you for addressing my issue. I am novice for VB.
    Request please suggest the solution using VB, it may save lot of time without any errors that I face currently

    Thank you once again


    Karnik

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Function/Array for combinations of numbers

    Hi,
    Have a look on such code, I made earlier for our national Forum
    http://www.excelforum.pl/topics3/kom...ow-vt64868.htm
    (and before used here: https://www.excelforum.com/excel-pro...vba-macro.html )
    I just added sorting.

    It reqiures other orientation of data (in columns not in rows, starting in cell B3) but of course you can copy with transpose.

    Please Login or Register  to view this content.
    See sample file attached
    Attached Files Attached Files

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Function/Array for combinations of numbers

    PS. As you may prefer original layout, and mentioned that have limited VBA knowlegde - please find version adopted to original data layout:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Re: Function/Array for combinations of numbers

    Hi Kasper,

    Thank you VB. This is brilliant VB saves huge amount of time..
    Cheers
    Karnik

+ 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. [SOLVED] To find all combinations of numbers from list of numbers that adds upto a specified number
    By Vivek2705 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-07-2019, 06:33 AM
  2. [SOLVED] Array/Function to for corresponding numbers
    By Karnik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2018, 02:46 AM
  3. Array(s) with combinations
    By Guerolito in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2015, 03:36 AM
  4. please help!!ALL COMBINATIONS REQUIRED FOR 5-DIGIT NUMBERs using numbers 0-9
    By natasha mirembe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2014, 01:43 PM
  5. Replies: 1
    Last Post: 04-15-2012, 09:23 AM
  6. Function that outputs numbers not found in an array.
    By cuboidgraphix in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2008, 01:57 PM
  7. Function generating all possible combinations of set of numbers
    By Lucia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2005, 07:06 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