+ Reply to Thread
Results 1 to 9 of 9

Unique set of Combinations

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Queensland
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    21

    Unique set of Combinations

    Hello!

    I am seeking help on creating a unique set of all combinations from a set of 4 data lists.

    I have found examples that create the output in one column, but i'd like to keep them separated. Hopefully the example file is fairly self-explanatory, but please shout if it doesn't make sense.

    I wasn't sure if the =unique function could be used with a combination of something else. The data lists are dynamic and can get quite long, so simple formulas that aren't resource intensive would be ideal.

    Thanks all!

    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique set of Combinations

    Hi,

    Can you give the first few expected results? I'm struggling to see why this isn't just:

    =UNIQUE(A2:D28)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Unique set of Combinations

    E2 =A2&" "&B2&" "&C2&" "&D2

    F2 =IF(COUNTIF($E$2:$E2,$E2)>1,"delete","")

    Filter on column F and filter on delete.

    After that delete those rows

    Or

    Filter on empty

    After that copy that data to a new place.

    Edit: file uploaded.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    Queensland
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    21

    Re: Unique set of Combinations

    haha you are indeed correct! now i feel like a right fool, i clearly didn't realise that function worked across multiple arrays. Thanks for pointing it out!

    Maybe you can help me with one more item then; is it still just as simple to apply this formula if the original data list columns aren't next to each other? (see tab 2)

    cheers!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-11-2012
    Location
    Queensland
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    21

    Re: Unique set of Combinations

    thanks for the input oeldere. However, ideally i need something that's fully automated as it will be fed with live data

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Unique set of Combinations

    For other forummembers.

    =UNIQUE(A2:D28) is available in Office 365, not in my excel 2016 version.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique set of Combinations

    Quote Originally Posted by itchy View Post
    is it still just as simple to apply this formula if the original data list columns aren't next to each other?
    =UNIQUE(FILTER(A2:F28,{1,0,1,1,0,1}))

    Regards

  8. #8
    Registered User
    Join Date
    04-11-2012
    Location
    Queensland
    MS-Off Ver
    Excel 365 ProPlus
    Posts
    21

    Re: Unique set of Combinations

    Quote Originally Posted by XOR LX View Post
    =UNIQUE(FILTER(A2:F28,{1,0,1,1,0,1}))

    Regards
    Thanks XOR LX!

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique set of Combinations

    You're welcome!

    A thanks to Bo_Ry from me for pointing out that the FILTER function can also be applied to columns!

    Cheers

+ 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] Get unique combinations
    By Longissimus in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 04-06-2020, 03:50 PM
  2. Getting the most unique combinations out of 30 entries.
    By drugsnothugs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2017, 05:49 PM
  3. Unique Permutation Combinations
    By Clemence in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2015, 09:54 AM
  4. [SOLVED] Unique Combinations from 4 Columns
    By ayvee0 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-12-2013, 06:44 PM
  5. Unique combinations of 7
    By ricardojaworski in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 11:56 AM
  6. VBA - Finding unique combinations
    By xlsnovice in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-30-2013, 10:32 AM
  7. [SOLVED] count unique combinations
    By mini in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2006, 07:50 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