+ Reply to Thread
Results 1 to 16 of 16

unique distinct list from a column but

Hybrid View

pic2pic unique distinct list from a... 01-26-2015, 03:59 PM
Richard Buttrey Re: unique distinct list from... 01-26-2015, 04:06 PM
pic2pic Re: unique distinct list from... 01-26-2015, 04:14 PM
Ace_XL Re: unique distinct list from... 01-26-2015, 04:26 PM
FDibbins Re: unique distinct list from... 01-26-2015, 04:28 PM
pic2pic Re: unique distinct list from... 01-26-2015, 05:18 PM
FDibbins Re: unique distinct list from... 01-26-2015, 08:32 PM
pic2pic Re: unique distinct list from... 01-27-2015, 04:55 PM
newdoverman Re: unique distinct list from... 01-26-2015, 08:28 PM
newdoverman Re: unique distinct list from... 01-27-2015, 05:18 PM
pic2pic Re: unique distinct list from... 01-27-2015, 05:48 PM
pic2pic Re: unique distinct list from... 01-27-2015, 05:56 PM
newdoverman Re: unique distinct list from... 01-27-2015, 06:05 PM
pic2pic Re: unique distinct list from... 02-02-2015, 04:00 PM
newdoverman Re: unique distinct list from... 01-27-2015, 06:03 PM
newdoverman Re: unique distinct list from... 02-02-2015, 05:15 PM
  1. #1
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    unique distinct list from a column but

    In this excel file I show what I have and what I need. In short I have list of unique distinct values from a column, that is ok . But I need list that will show unique distinct values from a column but only values that contain data in column data. Please help


    what I have and what I need.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: unique distinct list from a column but

    Maybe the Pivot Table in the attached will suffice. It has the huge advantage of not needing any coding or formulae
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: unique distinct list from a column but

    Thank you my friend. But is there a way not to use a pivot table ? I just don't like it

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: unique distinct list from a column but

    In D8

    =INDEX($A$8:$A$14,MATCH(0,INDEX(COUNTIF($D$7:D7,$A$8:$A$14)+($B$8:$B$14=""),0,0),0))

    Copy down
    Last edited by Ace_XL; 01-26-2015 at 04:28 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: unique distinct list from a column but

    Put this ARRAY formula in K8, then copy down and across...
    =IFERROR(INDEX(H$8:H$14,SMALL(IF($I$8:$I$14<>"",ROW($I$8:$I$14)-7),ROWS($H$8:H8))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: unique distinct list from a column but

    FDibbins and Ace_XL
    Sorry my friends, for some reason both of codes it's not working

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: unique distinct list from a column but

    Quote Originally Posted by pic2pic View Post
    FDibbins and Ace_XL
    Sorry my friends, for some reason both of codes it's not working
    I get that they may not be working for you, but we would hardly take the time to create a formula like that, without 1st testing it before we suggested it for your problem. Saying it doesnt work, doesnt help much - what did it do...wrong value...no value...error...?

    Did you use CTRL SHFT ENTER to enter ir, or just enter? You need to use CSE

  8. #8
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: unique distinct list from a column but

    Thank you all. I had some idea, the fallowing code :

    =IF(B8<>"";A8;"")

    After that I can use mentioned code in another column to find unique distinct values . What I don't like is that this will make empty cells in between filled cells . Is there a way to remove these cells ?

    It's in a file

    what I have and what I need - version 2.xlsx

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: unique distinct list from a column but

    Enter this in K8 and fill down:
    Formula: copy to clipboard
    =IFERROR(INDEX($H$8:$H$14,MATCH(1,INDEX((COUNTIF($K$7:K7,$H$8:$H$14)=0)*($H$8:$H$14<>"")*($I$8:$I$14<>""),0),0)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Enter this in L8 and fill down:

    Formula: copy to clipboard
    =IFERROR(INDEX($I$8:$I$14,MATCH(K8,$H$8:$H$14,0)),"")
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: unique distinct list from a column but

    The formulae that I gave you in message # 7 will not leave blanks between values and will only return values that have a value in the next column.
    Here is the formula with the correct cell references for your current workbook. This doesn't require Array Entry as previously stated. Enter normally.

    Formula: copy to clipboard
    =IFERROR(INDEX($A$8:$A$14,MATCH(1,INDEX((COUNTIF($D$7:D7,$A$8:$A$14)=0)*($A$8:$A$14<>"")*($B$8:$B$14<>""),0),0)),"")



    If you don't want to use the criteria in column B then the formula would be as follows to return the unique values from column A.

    Formula: copy to clipboard
    =IFERROR(INDEX($A$8:$A$14,MATCH(1,INDEX((COUNTIF($D$7:D7,$A$8:$A$14)=0)*($A$8:$A$14<>""),0),0)),"")

  11. #11
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: unique distinct list from a column but

    wooow .Thank you sir . Actually I don't understand this code at all (would be nice to ) but it works

  12. #12
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: unique distinct list from a column but

    How do I mark this as "SOLVED" ?

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: unique distinct list from a column but

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  14. #14
    Registered User
    Join Date
    01-05-2013
    Location
    Sarajevo
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: unique distinct list from a column but

    Hi guys ! This works very good, but is it possible to have the same thing but in alphabetical order ?

  15. #15
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: unique distinct list from a column but

    Thank you for the feedback.

    To start to figure out the formula, start in the middle with the COUNTIF. With the formula in the formula bar, click on COUNTIF then click on fx on the left of the formula bar. The COUNTIF function will be displayed with all of the elements filled in. Click on each element and an explanation of what it is, is given. Do this for each of the functions working your way outwards and you should have a good idea of what is going on.

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: unique distinct list from a column but

    If you select all the data, the extracted values can be sorted in order.

+ 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: 2
    Last Post: 12-04-2014, 04:59 AM
  2. Replies: 8
    Last Post: 11-05-2014, 10:27 PM
  3. Create a Distinct Unique list for 2 Columns
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-06-2014, 05:10 PM
  4. [SOLVED] Distinct List from Column of Values
    By dianaschar in forum Excel General
    Replies: 4
    Last Post: 03-26-2013, 11:39 AM
  5. [SOLVED] Unique distinct alphabetically sorted list
    By atlant15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 10:03 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