+ Reply to Thread
Results 1 to 7 of 7

list of pair combination that only use the data once

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    Jakarta
    MS-Off Ver
    2010
    Posts
    10

    list of pair combination that only use the data once

    Hey All,

    I have a column of numbers like in the example I made. I want to make list of pair combination using macro, with condition that the difference value are <=100, but the number in the column only can be chosen once.

    Can someone help me with this? Thank you.. I really appreciate it

    Example :

    Data Column
    700
    500
    600
    800
    900
    1300
    1100
    1200
    1500
    1550
    1600

    list of pair :

    700 600
    800 900
    1300 1200
    1500 1550

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list of pair combination that only use the data once

    try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-28-2014
    Location
    Jakarta
    MS-Off Ver
    2010
    Posts
    10

    Re: list of pair combination that only use the data once

    I have try it and it works!!

    thanks for your help!!

  4. #4
    Registered User
    Join Date
    08-28-2014
    Location
    Jakarta
    MS-Off Ver
    2010
    Posts
    10

    Re: list of pair combination that only use the data once

    I have try it and it works!!

    thanks for your help!!

  5. #5
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list of pair combination that only use the data once

    Thanks for the feedback.

    That particular code will only work if your range is non-negative integers. No text.
    If your numbers are greater than 10,000 you would need to change the b(10000) in the second line.
    If your numbers are negative, non-integer, or greater than 10,000,000 then can use a somewhat modified version.

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: list of pair combination that only use the data once

    Thanks for the feedback.

    That particular code will only work if your range is non-negative integers. No text.
    If your numbers are greater than 10,000 you would need to change the b(10000) in the second line.
    If your numbers are negative, non-integer, or greater than 10,000,000 then can use a somewhat modified version.

  7. #7
    Registered User
    Join Date
    08-28-2014
    Location
    Jakarta
    MS-Off Ver
    2010
    Posts
    10

    Re: list of pair combination that only use the data once

    Ok, thanks for the information
    I have try changing the number data, and it works!

+ 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] List of pair combination with desired condition
    By fatwa.amanu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2014, 04:29 AM
  2. [SOLVED] Marking if one of a pair included in list
    By Cunner in forum Excel General
    Replies: 8
    Last Post: 04-09-2014, 04:48 AM
  3. VBA Needed for all possible two-pair combination of cells
    By mailsodia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-29-2012, 06:04 AM
  4. Replies: 3
    Last Post: 07-20-2012, 07:29 PM
  5. Randomly Pair Names in a list
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2006, 01:14 PM

Tags for this Thread

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