+ Reply to Thread
Results 1 to 9 of 9

extract all values in column, excluding immediate duplicates only

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    extract all values in column, excluding immediate duplicates only

    I have a list of names in a column. they appear in duplicate groups but the groups can occur more than once. I need a way to list each name from the column in order but exclude immediate duplicates but not other instances of the same name later on. If that makes since. The list on the left would become the list on the right.

    Me Me
    Me You
    Me Them
    You Me
    You You
    You
    Them
    Them
    Them
    Me
    Me
    Me
    You
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: extract all values in column, excluding immediate duplicates only

    Hi

    with a helper in B:
    =IF(A1=A2,"",A1)

    G1 and down:
    =IFERROR(INDEX($A$1:$A$61,AGGREGATE(15,6,ROW($B$1:$B$61)/($B$1:$B$61<>""),ROWS($A$1:A1))),"")
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: extract all values in column, excluding immediate duplicates only

    Another option.
    In E1 & drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-05-2018
    Location
    Tbilisi, Georgia
    MS-Off Ver
    2013, 2016
    Posts
    271

    Re: extract all values in column, excluding immediate duplicates only

    del.
    Reason: the same solution provided above

  5. #5
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: extract all values in column, excluding immediate duplicates only

    Quote Originally Posted by belinda200 View Post
    Hi

    with a helper in B:
    =IF(A1=A2,"",A1)

    G1 and down:
    =IFERROR(INDEX($A$1:$A$61,AGGREGATE(15,6,ROW($B$1:$B$61)/($B$1:$B$61<>""),ROWS($A$1:A1))),"")
    For some reason the code is not returning the first name on the worksheet I am using it on. I have it set up the same way but it is just ignoring the first name and starting the list with the second name.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: extract all values in column, excluding immediate duplicates only

    This certainly works...

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$1:$A$61)/($A$1:$A$61<>$A$2:$A$62),ROWS(H$1:H1))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: extract all values in column, excluding immediate duplicates only

    Quote Originally Posted by chriswrcg View Post
    For some reason the code is not returning the first name on the worksheet I am using it on. I have it set up the same way but it is just ignoring the first name and starting the list with the second name.
    Dont know why, but you received an integrated solution from Fluff13 and Glenn Kennedy, both should work.

  8. #8
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: extract all values in column, excluding immediate duplicates only

    Thanks for all the help guys, as always yall have taught me a lot.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: extract all values in column, excluding immediate duplicates only

    Glad to help & thanks for the feedback

+ 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. [SOLVED] Extract from vertical list excluding blank and duplicates
    By Sekars in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2022, 01:49 AM
  2. [SOLVED] Extract Values in a Column Excluding Blanks
    By bjnockle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2020, 01:32 PM
  3. [SOLVED] Extract Unique values from the list of Duplicates and copy into another column
    By nadeemm in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-20-2018, 11:58 AM
  4. [SOLVED] Extract numbers for given creteria excluding duplicates
    By Sekars in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-04-2017, 11:06 AM
  5. Frequency of occuring values excluding duplicates
    By Ollypetcon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-23-2014, 01:03 PM
  6. [SOLVED] Populate ComboBox from a column excluding duplicates?
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2013, 02:06 PM
  7. [SOLVED] Linking to a column of values, excluding duplicates?
    By bauerbach in forum Excel General
    Replies: 5
    Last Post: 06-25-2012, 02:13 PM

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