+ Reply to Thread
Results 1 to 4 of 4

How to get all possible combinations of 2 columns of numbers into another set of 2 columns

Hybrid View

shlomo821 How to get all possible... 01-20-2013, 06:00 PM
dilipandey Re: How to get all possible... 01-21-2013, 02:31 AM
kvsrinivasamurthy Re: How to get all possible... 01-21-2013, 03:58 AM
shlomo821 Re: How to get all possible... 01-22-2013, 07:11 PM
  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    7

    How to get all possible combinations of 2 columns of numbers into another set of 2 columns

    Hello,

    I am trying to get all possible combinations of column A and Column B into columns D and E, There are around 4000 numbers and it wont fit into one sheet so the results would need to go onto multiple sheets or multiple columns.

    Example:
    11111 22222
    11112 22223
    11113 22224
    11114 22225
    11115 22226
    continuing for 4000 more sets

    any help would be great

    thank you

    i am using excel 2010

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How to get all possible combinations of 2 columns of numbers into another set of 2 col

    Hi shlomo821,

    Try using Randbetween function with minimum & maximum number from you data and fill a entire column (or may be 2-3 columns) with this formula. Now just filter out unique numbers from the formula column. Hope this helps you to start on. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: How to get all possible combinations of 2 columns of numbers into another set of 2 col

    Pl see the attached file.

    Macro GetCombinations1 will fill numbers in same sheet.

    The numbers will be filled in D & E Column. After the last row It will fill in G & H. Like this it continues till last no is filled.


    Macro GetCombinations2 will fill numbers in different sheet.

    The numbers will be filled in D & E Column
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-20-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to get all possible combinations of 2 columns of numbers into another set of 2 col

    Hi,

    that worked amazingly! thank you so much!

    Now i have a total of 6million zip code combinations and was wondering if its possible in excel to get the driving distance from each zip code to zip code using google maps?


    Thanks again

+ 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