+ Reply to Thread
Results 1 to 5 of 5

Formula that list all the duplicates from column A if found any duplicate in column C

  1. #1
    Registered User
    Join Date
    11-23-2020
    Location
    Bucuresti, Romania
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2

    Formula that list all the duplicates from column A if found any duplicate in column C

    Hello guys,

    First time on this forum, searching for help . I will very grateful if you can help me solve this formula.

    So, I have this table with multiple products, and sometimes 2 or 3 products share the same components.
    I attached an example with few products. In the example you will find a search box and a formula that list all the lines with the order number typed in that serch box.
    For example, the order 907900 has a common component with order nr. 907920, and what I need is a formula to show me all the components from both orders 907900 and 907920.

    Please help me guys. Thank you in advance!
    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: Formula that list all the duplicates from column A if found any duplicate in column C

    You want to show just the orders that have same component number?
    how does it tie to your search cell?

  3. #3
    Registered User
    Join Date
    11-23-2020
    Location
    Bucuresti, Romania
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2

    Re: Formula that list all the duplicates from column A if found any duplicate in column C

    hello belinda200,

    thank you for your fast replay.

    if I search one order, I want to show me all the orders with all thry'r components that has 1 or more common components as the order that I'm searching.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Formula that list all the duplicates from column A if found any duplicate in column C

    Hello melnic and Welcome to Excel Forum.
    This proposal employs a helper column which may be moved and/or hidden for aesthetic purposes.
    Not having the 365 version with which to work, I am using INDEX and AGGREGATE.
    The helper column (E) is populated using: =IF(A2=G$2,"",IFERROR(MATCH(C2,K$2:K$4,0),""))
    The list of Order NR's that share components (G5:G7) is populated using: =IFERROR(INDEX(A$2:A$22,AGGREGATE(15,6,(ROW(A$2:A$22)-ROW(A$1))/(E$2:E$22<>""),ROWS(A$1:A1))),"")
    The related order nr's information (M1:P5) is populated using: =IFERROR(INDEX(A$2:A$22,AGGREGATE(15,6,(ROW($A$2:$A$22)-ROW($A$1))/(($A$2:$A$22=$G$5)+($A$2:$A$22=$G$6)+($A$2:$A$22=$G$7)),ROWS($A$1:$A1))),"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Formula that list all the duplicates from column A if found any duplicate in column C

    I'm sure there must be a simpler way, but it's late in the evening, so my brains shutting down.
    =FILTER(A2:D22,ISNUMBER(MATCH(A2:A22,FILTER(A2:A22,ISNUMBER(MATCH(C2:C22,FILTER(C2:C22,(A2:A22=G2)),0))),0)))

+ 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: 07-29-2020, 10:13 AM
  2. If duplicates found in a column, return "duplicate"
    By redJohn89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-14-2019, 08:10 AM
  3. Replies: 7
    Last Post: 03-13-2015, 05:34 PM
  4. Find duplicates in one column & add data from another column to duplicate-free sheet
    By ingiabouzeid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2013, 03:37 AM
  5. Replies: 1
    Last Post: 06-01-2013, 01:27 AM
  6. [SOLVED] Macro to find column with duplicates, for each of those check another column for duplicate
    By MaartenKoller in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-17-2013, 10:09 AM
  7. Replies: 3
    Last Post: 11-08-2012, 09:29 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