+ Reply to Thread
Results 1 to 5 of 5

Unique combination of values in 7 columns

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    World
    MS-Off Ver
    2013
    Posts
    3

    Unique combination of values in 7 columns

    Hi guys

    I have 7 columns (variables) across which I have a total of 1500 observations (rows). I need to get unique combination of all these 7 variables. Is there a way to do this in excel ?

    Thank you

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Unique combination of values in 7 columns

    Hi excelmac1 and welcome to the forum,

    Look at the Data Tab and Remove Duplicates Icon. That would be a start.

    See if that does what you need.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-03-2014
    Location
    World
    MS-Off Ver
    2013
    Posts
    3

    Re: Unique combination of values in 7 columns

    thanks MarvinP

    I'm not looking at deleting any duplicates or anything. I just need unique combinations

    e.g.

    V1=a,b,c,d
    V2=1,2,3,4

    I need output such that

    a1, a2, a3,a4, b1,b2,b3,b4, c1,c2,c3,c4,d1,d2,d3,d4

    As you can see, variable1 and variable 2 values were used to get all unique combinations possible for the values of these two variables.

    I have 7 variables instead of 2 and 15000 observations instead of 4

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Unique combination of values in 7 columns

    Hi,

    Can you attach a short (sample) workbook of your data, giving what you have and what you expect to see. We need a small sample to understand what you mean by "combinations". Does order matter in the answer? Are the combinations in pairs or do all 7 columns need to be present in a unique combination.

    To attache a workbook, click on "Go Advanced" then on the Paper Clip icon above the advanced message area.

  5. #5
    Registered User
    Join Date
    12-03-2014
    Location
    World
    MS-Off Ver
    2013
    Posts
    3

    Re: Unique combination of values in 7 columns

    Please see attached a sample.

    All 6 variables have to be present in the combination (I've just used 6 variables for this excercise). If I can figure it out for 6 I can replicate for 7 or more variables
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 12-01-2014, 07:58 PM
  2. Getting Unique List From Combination of 2 Columns
    By allansy8 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-18-2014, 03:23 PM
  3. Replies: 26
    Last Post: 11-22-2013, 04:07 PM
  4. Finding a unique combination of values
    By bassiere in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-27-2013, 10:20 AM
  5. [SOLVED] enforce unique value in a combination of columns
    By pinaki_biswas in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2013, 08:59 AM

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