Consulting

Results 1 to 9 of 9

Thread: Solved: A list of distinct values

  1. #1

    Solved: A list of distinct values

    Hi everybody
    I used to that forum and I liked it very much
    That's the truth
    Everything here has a solution..I found creations here

    I want help in this file
    I have a list and I want to extract the distinct values

  2. #2
    Is this request difficult???

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Yes, tricky with a formula, to get uniques. Conditional is easy, unique conditional, not so easy.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Expert shrivallabha's Avatar
    Joined
    Jan 2010
    Location
    Mumbai
    Posts
    750
    Location
    1. Sort the columns (A & B) in ascending order.
    2. In third column assign a formula as
    Quote Originally Posted by Formula
    =IF(A1=A2,IF(B1=B2,"Duplicate","Unique"),"Unique")
    Remove Duplicates and you have uniques list.

    Another will be using Pivot Table

    See attachment
    Regards,
    --------------------------------------------------------------------------------------------------------
    Shrivallabha
    --------------------------------------------------------------------------------------------------------
    Using Excel 2016 in Home / 2010 in Office
    --------------------------------------------------------------------------------------------------------

  5. #5
    It works!
    Quote Originally Posted by shrivallabha
    1. Sort the columns (A & B) in ascending order.
    2. In third column assign a formula as

    Remove Duplicates and you have uniques list.

    Another will be using Pivot Table

    See attachment

  6. #6
    Knowledge Base Approver VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    The Duplicate Master addin provides anther way to extract true unique values http://www.experts-exchange.com/A_2123.html

    The addin provides options for handling white spaces, case sensitivity and regex matching for advanced string capacity

    Cheers

    Dave

  7. #7
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Dave's add-in is a very useful tool. One piece of advice; change the default Application Scope to "Range", especially if you are using the Delete Duplicates function. It's safer!
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  8. #8
    Really it's very useful addin
    Thanks a lot for help Mr. Dave and all the moderators in this forum

  9. #9
    Knowledge Base Approver VBAX Expert brettdj's Avatar
    Joined
    May 2004
    Location
    Melbourne
    Posts
    649
    Location
    > One piece of advice; change the default Application Scope to "Range", especially if you are using the Delete Duplicates function. It's safer!

    Very true.

    In fact I will add a message to do so on the next update

    Cheers

    Dave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •