+ Reply to Thread
Results 1 to 8 of 8

list unique digits

  1. #1
    stewart08
    Guest

    list unique digits

    hi excelers

    I being trying to create a simple formula that only lists 3 UNIQUE digits from 5 digits (that may have repeats) - example:

    5 Colums
    1,1,2,3,2 = 1,2,3,

    any comments, grateful for any solutions....
    Last edited by stewart08; 02-17-2009 at 11:54 AM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: list unique digits

    HI

    The following code will list all unique entries based on data in columns A to E

    Please Login or Register  to view this content.
    Regards

    Jeff

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: list unique digits

    Not exactly sure what you want the result to be...but, here's a guess:

    With
    A1:E1 containing 3 unique digits....duplicates allowed...no blanks

    This regular formula returns the 3 unique digits, in one cell, separated by commas:

    Please Login or Register  to view this content.

    If A1:E1 contains: 1 1 2 3 2
    The formula returns: 1,2,3

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: list unique digits

    I know this against the rules as I am adding nothing but...

    WOW

    Ron, very cool indeed... I have another of yours tucked away on a similar theme but that's very neat indeed.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: list unique digits

    Thanks for the kind words, DonkeyOte...much appreciated.

  6. #6
    stewart08
    Guest

    Re: list unique digits

    thanks ron indeed you know your stuff.

    I used your the formula its work, but I need it to return 3 single digits in each colum...

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: list unique digits

    Here's a macro that will do what you want "on-demand". Install this into a standard module.
    Please Login or Register  to view this content.
    Now run the macro, it will ask you for a range of cells, select your range. Then it will ask where you want it, select a range of cells across one row and it will parse out the value for you.

    I've tweaked the original code slightly since it was designed originally to return the values in a single column list, and you wanted them all in one row.
    Last edited by JBeaucaire; 02-17-2009 at 07:40 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: list unique digits

    Quote Originally Posted by stewart08 View Post
    thanks ron indeed you know your stuff.

    I used your the formula its work, but I need it to return 3 single digits in each colum...

    OK...using the same set up of values in A1:E1

    This formula returns the lowest of the 3 unique values:

    Please Login or Register  to view this content.
    Copy that formula across through G1:H1 for the 2nd and 3rd smallest values.

    Does that help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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