+ Reply to Thread
Results 1 to 5 of 5

Extract rows for duplicate K values with AT different Number

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    672

    Extract rows for duplicate K values with AT different Number

    Hello Friends

    I need to extract the rows for duplicate values in column K but different numbers in column AT. This needs to be done by formula.

    Sheet 2 shows the required result.

    thanks in advance

    Sekar
    Sekar

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Extract rows for duplicate K values with AT different Number

    Please try at Sheet2

    Helper AY4
    =IFERROR(AGGREGATE(15,6,ROW(Sheet1!$K$3:$K$68)/(COUNTIF(Sheet1!$K$3:$K$68,Sheet1!$K$3:$K$68)>COUNTIFS(Sheet1!$K$3:$K$68,Sheet1!$K$3:$K$68,Sheet1!$AT$3:$AT$68,Sheet1!$AT$3:$AT$68))/(MATCH(Sheet1!$K$3:$K$68&Sheet1!$AT$3:$AT$68,INDEX(Sheet1!$K$3:$K$68&Sheet1!$AT$3:$AT$68,),)=ROW(Sheet1!$K$3:$K$68)-ROW(Sheet1!$K$2)),ROWS(A$4:A4)),"")

    A4:AWxx
    =IF($AY4="","",INDEX(Sheet1!A:A,$AY4))

  3. #3
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    672

    Re: Extract rows for duplicate K values with AT different Number

    Hello Bo_Ry

    Thanks for your formula. Working perfect, but i am sorry i missed one requirement. Along with the existing criteria's in Column B for specific text (say AAA) then it should pull the rows.

    Kindly refer the attached file.

    Thanks again

    Sekar

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Extract rows for duplicate K values with AT different Number

    AY4
    =IFERROR(AGGREGATE(15,6,ROW(Sheet1!$K$3:$K$68)/(COUNTIF(Sheet1!$K$3:$K$68,Sheet1!$K$3:$K$68)>COUNTIFS(Sheet1!$K$3:$K$68,Sheet1!$K$3:$K$68,Sheet1!$AT$3:$AT$68,Sheet1!$AT$3:$AT$68))/(MATCH(Sheet1!$K$3:$K$68&Sheet1!$AT$3:$AT$68,INDEX(Sheet1!$K$3:$K$68&Sheet1!$AT$3:$AT$68,),)=ROW(Sheet1!$K$3:$K$68)-ROW(Sheet1!$K$2))/(Sheet1!$B$3:$B$68="AAA"),ROWS(AY$4:AY4)),"")

  5. #5
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    672

    Re: Extract rows for duplicate K values with AT different Number

    Hello Bo_Ry

    Thanks for your formula, working well,

    This is saving my time.

    Thanks again

    Sekar

+ 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. Extract Duplicate Values in New Sheet
    By hookedupon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2017, 09:16 AM
  2. extract duplicate number
    By pedersenn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2016, 01:43 PM
  3. [SOLVED] Extract Duplicate values
    By kmahesh in forum Excel General
    Replies: 5
    Last Post: 10-14-2014, 05:29 AM
  4. [SOLVED] Compare Rows, Delete duplicate values, Sum values but Retain blank rows
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2013, 07:38 AM
  5. Replies: 1
    Last Post: 03-28-2013, 01:48 PM
  6. VBA helps needed to Sum duplicate values and delete duplicate rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 11:40 PM
  7. How to extract duplicate rows base on multiple column values
    By masai_chadi in forum Excel General
    Replies: 12
    Last Post: 09-25-2009, 04:31 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