+ Reply to Thread
Results 1 to 2 of 2

Maximum Combination

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Maximum Combination

    Hi All,

    How to arrive the maximum Record-combination available for the data explained in the excel sheet using excel function.
    Ex:
    HN#1 has H#1(Husband) & W#1 (Wife) as couple. They should stick as couple no change in that.
    My Requirement:
    ·******** There are 24 houses available in a town. I want to know each combination of
    o** Record#1: HN#1 with rest of houses says HN#2 to HN#24, like wise
    o** Record#2: HN#2 with rest of houses says HN#3 to HN#24,
    o** Record#3: HN#3 with rest of houses says HN#4 to HN#24…….
    ·******** Since HN#1 to HN#2 already exits as record, not require the vice versa combination i.e., HN#2 to HN#1.

    Thanks in advance.
    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,632

    Re: Maximum Combination

    First I thought that strightforward macro will do:
    Please Login or Register  to view this content.
    But after the test I realized that in your data there is no:
    H#11 W#11 HN#11

    and immediately after:
    H#10 W#10 HN#10
    appears:
    H#12 W#12 HN#12

    so I rewrote a bit the procedure. Of course you can add application.screenupdating = false at the beginning to make it quicker (if there is more than 23 couples). but for the test data it's quick enough.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,

    Kaper

+ 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] sorting by maximum value and displaying a corresponding text with the maximum value
    By ScottBeatty in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-20-2013, 03:11 PM
  2. [SOLVED] how many cell in a row that contain certain combination from a larger combination
    By system in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-17-2012, 03:04 PM
  3. Replies: 1
    Last Post: 11-04-2012, 10:27 AM
  4. Combination of three numbers from 6 possible that yields the maximum result
    By amshane97 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2012, 11:32 AM
  5. Maximum value within a 10 minutes timeframe (conditional maximum)
    By Jimmy T in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2011, 09:58 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