+ Reply to Thread
Results 1 to 7 of 7

Combinations from 4 lists with conditions

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    267

    Combinations from 4 lists with conditions

    Hi,

    I have 4 identical lists(A, B, C, D), each containing the following numbers:

    5
    10
    15
    22
    44
    50
    65
    97
    132
    200

    I want to make combination lists with the following conditions:

    Using only A & B
    Condition: A < B

    Using A, B & C
    Condition: A < B < C

    Using A, B, C & D
    Condition: A < B < C < D

    urgent help will be highly appreciated....
    Regards,
    Navin Agrawal

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Combinations from 4 lists with conditions

    For example, ...?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    267

    Re: Combinations from 4 lists with conditions

    Quote Originally Posted by shg View Post
    For example, ...?
    Attaching excel file for illustration...

    I have 4 identical lists(A, B, C, D), each containing the following numbers:

    5
    10
    15
    22
    44
    50
    65
    97
    132
    200

    I want to make combination lists with the following conditions:

    Using only A & B
    Condition: A < B

    Using A, B & C
    Condition: A < B < C

    Using A, B, C & D
    Condition: "A < B" and "C < D"

    urgent help will be highly appreciated....
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,607

    Re: Combinations from 4 lists with conditions

    I can somewhat follow the logic of the formulas in cells P2:X2 but I don't understand why the formula in Y2 isn't: =IF($C7>D7,1,-1)
    Perhaps if we could understand the logic we could attempt to write formulas or code that would do what you want.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    267

    Re: Combinations from 4 lists with conditions

    Quote Originally Posted by JeteMc View Post
    I can somewhat follow the logic of the formulas in cells P2:X2 but I don't understand why the formula in Y2 isn't: =IF($C7>D7,1,-1)
    Perhaps if we could understand the logic we could attempt to write formulas or code that would do what you want.
    Apologies for delayed reply....

    You are right... it was my mistake... I forgot to change $B to $C

    Y2 should have been =IF($C7>D7,1,-1)

    Pls help....

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,607

    Re: Combinations from 4 lists with conditions

    Here is a possibility for the A<B formula that starts in cell P2 of the file attached to post #3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I'll attempt to post a possibility for A<B<C later if someone else hasn't already done so.
    Let us know if you have any questions.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Combinations from 4 lists with conditions

    I found helper rows defining 5 with 10, 5 with 15, 5 with 22, etc. simpler.

    In the attached find this for the A B line in P4 and filled across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then for the A B C line in P10 and filled across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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. deleted post
    By joemac92 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2015, 12:19 AM
  2. [SOLVED] Combining two lists of names and all combinations based on a separate common value
    By Speshul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2015, 12:31 PM
  3. [SOLVED] Help Required: Stock lists - Calculating combinations of products
    By MaD2ko0l in forum Excel General
    Replies: 12
    Last Post: 05-12-2013, 10:47 AM
  4. Make and regularly update a list of all combinations of two lists of unique values
    By Sherelle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2012, 07:21 PM
  5. Formula with three conditions and function combinations
    By lucianir in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-11-2012, 01:30 AM
  6. Re: Matching various conditions in two lists
    By quikgun15 in forum Excel General
    Replies: 0
    Last Post: 09-18-2009, 09:35 AM
  7. Matching various conditions in two lists
    By quikgun15 in forum Excel General
    Replies: 7
    Last Post: 09-17-2009, 10:51 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