+ Reply to Thread
Results 1 to 7 of 7

Finding only distinct rows

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Finding only distinct rows

    Hi,

    There is a data, which contains number of rows which are reapeted more than once.

    The solution is to eliminate the repetion and find only the distinct rows.

    For example:

    Please Login or Register  to view this content.

    In the above data "12,14,35" "32,19,18" "5,1,4" has repeated more than once, so the task is to exclude their duplicates and only display their,
    single occurance along with other distinct rows.

    After sorting the above data, it should should look like this:

    Please Login or Register  to view this content.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,012

    Re: Finding only distinct rows

    .
    This is one way to accomplish the task :

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-14-2018
    Location
    Hanoi, Vietnam
    MS-Off Ver
    2016
    Posts
    118

    Re: Finding only distinct rows

    Add a helper column D.
    Formula in D2
    Please Login or Register  to view this content.
    Fill down.
    Formula in E2.
    Please Login or Register  to view this content.
    Fill down.
    Filter column E to get your result.

    Edit: See post #4 to improve this method.
    Capture.PNG
    Last edited by congnt92; 09-03-2018 at 06:52 AM. Reason: add info.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Finding only distinct rows

    I like the helper column solution, but it needs to be
    D2=IFERROR(SMALL(A2:C2,1)&"-"&SMALL(A2:C2,2)&"-"&SMALL(A2:C2,3),"")

    or something similar, otherwise 1, 2, 34 would match with 1,23,4

  5. #5
    Forum Contributor
    Join Date
    08-14-2018
    Location
    Hanoi, Vietnam
    MS-Off Ver
    2016
    Posts
    118

    Re: Finding only distinct rows

    Quote Originally Posted by davsth View Post
    I like the helper column solution, but it needs to be
    D2=IFERROR(SMALL(A2:C2,1)&"-"&SMALL(A2:C2,2)&"-"&SMALL(A2:C2,3),"")

    or something similar, otherwise 1, 2, 34 would match with 1,23,4
    Yep. You're right. I forgot it. Tks.

  6. #6
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding only distinct rows

    cheers congnt92 , but what about the formula for rows F,G,H to also display the actual items from rows A,B,C, any idea about that?

  7. #7
    Forum Contributor
    Join Date
    08-14-2018
    Location
    Hanoi, Vietnam
    MS-Off Ver
    2016
    Posts
    118

    Re: Finding only distinct rows

    Quote Originally Posted by LAVA2 View Post
    cheers congnt92 , but what about the formula for rows F,G,H to also display the actual items from rows A,B,C, any idea about that?
    Hi Lava2
    I don't know what you mean. Could u explain more details?

+ 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. Finding unique distinct values
    By mrichard in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2016, 11:07 AM
  2. [SOLVED] Finding distinct values across multiple columns - FREQUENCY array?
    By brokenbiscuits in forum Excel General
    Replies: 4
    Last Post: 01-12-2015, 09:06 AM
  3. Finding distinct values within a single string
    By balki42 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2013, 06:39 AM
  4. Replies: 4
    Last Post: 09-13-2012, 07:49 AM
  5. Replies: 5
    Last Post: 07-19-2010, 01:50 PM
  6. [SOLVED] Get distinct rows from different worksheets into another worksheet
    By Nikhil in forum Excel General
    Replies: 8
    Last Post: 07-15-2006, 03:10 PM
  7. [SOLVED] Sum Distinct Rows in PivotTable
    By Jay in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-18-2006, 11:10 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