+ Reply to Thread
Results 1 to 3 of 3

Set a range of cells for searching missing combinations

  1. #1
    Registered User
    Join Date
    01-06-2013
    Location
    New York, EUA
    MS-Off Ver
    Excel 2013
    Posts
    77

    Set a range of cells for searching missing combinations

    Hi everybody,

    The following macro searches for missing combinations. This macro will search the complete list and will return any missing combination from "1, 2, 3, 4" to "7, 8, 9, 10".

    Please Login or Register  to view this content.
    I need your help to make some changes in this macro, so that it will search for missing combinations only within a specified range of cells (and not the whole list). For example (see excel file attached), I would like to place a search within range("G23:J183"), from combination "1, 2, 6, 9" to combination "4, 6, 8, 10". In this case, it should return only 9 missing combinations.

    Any help is welcomed. Thank you very much.

    John
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Set a range of cells for searching missing combinations

    May be you need to change the line

    Please Login or Register  to view this content.

    To

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    01-06-2013
    Location
    New York, EUA
    MS-Off Ver
    Excel 2013
    Posts
    77

    Re: Set a range of cells for searching missing combinations

    Hi sktneer,

    Thanks for your reply. Now this macro returns all combinations BEFORE combination "1, 2, 6, 9" (that is, all combinations before range("G23")) and all combinations AFTER combination "4, 6, 8, 10" (that is, all combinations after range("J183")).

    What changes should be made in order to make this macro return only the missing combinations BETWEEN "1, 2, 6, 9" and "4, 6, 8, 10" ? How could I change the values of "a", "b", "c" and "d" in order to achieve this goal? If I set the values as: "For a = 1 to 4", "For b = 2 to 6", "For c = 6 to 8", "For d = 9 to 10", then this macro makes a big mess. The main point is that this list is about a series of number combinations (numbers "1", "2", "3", "4", "5", "6", "7", "8", "9" and "10" combined 4 by 4).

    Thank you very much.

    John

+ 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] Find missing combinations
    By JOAO12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2014, 07:14 PM
  2. Searching through a group of cells to find missing people.
    By babak_jani in forum Excel General
    Replies: 1
    Last Post: 11-14-2013, 01:52 AM
  3. Searching combinations
    By christheta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2010, 06:08 AM
  4. Searching for letter combinations
    By h3lla in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2008, 10:14 PM
  5. Searching for 50 combinations of something out of hundreds.
    By schueyisking in forum Excel General
    Replies: 21
    Last Post: 08-14-2008, 12:09 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