+ Reply to Thread
Results 1 to 6 of 6

Find repetitive rows and return as first row only

  1. #1
    Registered User
    Join Date
    10-18-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft 365
    Posts
    3

    Post Find repetitive rows and return as first row only

    Hi everyone. I am attempting to make a list of attendance. There are some repetitive rows and I wanted to return value only for the first row of the duplicates.

    Name Date
    John 12/1/2021
    Kevin 12/1/2021
    Kevin 12/1/2021
    Sarah 12/1/2021
    Sarah 12/1/2021
    Mike 12/1/2021


    The result is supposed to look like this

    Name Date
    John 12/1/2021
    Kevin 12/1/2021
    Sarah 12/1/2021
    Mike 12/1/2021



    Thank you in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,242

    Re: Find repetitive rows and return as first row only

    Welcome to the forum.

    Which version of Office are you using? 10 is Windows, not Office ...

    Did you try the Remove Duplicates option on the Data ribbon?

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    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
    43,959

    Re: Find repetitive rows and return as first row only

    assuming you do NOT have O365...

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$3:$A$8)/(COUNTIFS($E1:$E$1,$A$3:$A$8,$F1:$F$1,$B$3:$B$8)=0),1)),"")

    in E2 copied down and a variant in F2, copied down. see file.
    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

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,242

    Re: Find repetitive rows and return as first row only

    As you have 365:

    =UNIQUE(A2:B7)

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,242

    Re: Find repetitive rows and return as first row only

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    10-18-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft 365
    Posts
    3

    Re: Find repetitive rows and return as first row only

    It works! Thank you very much! 

    Quote Originally Posted by Glenn Kennedy View Post
    assuming you do NOT have O365...

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$3:$A$8)/(COUNTIFS($E1:$E$1,$A$3:$A$8,$F1:$F$1,$B$3:$B$8)=0),1)),"")

    in E2 copied down and a variant in F2, copied down. see file.

+ 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. Find Max value and return column header, multiple rows
    By Setanta11 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2015, 04:58 AM
  2. Replies: 27
    Last Post: 06-06-2014, 05:30 PM
  3. Macro to transpose repetitive 24 entries from column to rows
    By balaji2285 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2013, 07:48 AM
  4. [SOLVED] How to fill in the rows with repetitive values
    By nanas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2012, 03:29 AM
  5. Adding a repetitive word in all rows of a column
    By zeudoc77 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 03-09-2012, 12:42 PM
  6. Pulling individual rows out of repetitive data.
    By Onestopfanshop in forum Excel General
    Replies: 2
    Last Post: 05-13-2009, 12:03 PM
  7. [SOLVED] SORT REPETITIVE DATA FROM ROWS TO COLUMNS
    By Mitch in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-24-2006, 12:30 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