+ Reply to Thread
Results 1 to 3 of 3

Finding Matches Across Columns and Writing Corresponding IDs

  1. #1
    Registered User
    Join Date
    01-15-2022
    Location
    turkey
    MS-Off Ver
    2021
    Posts
    10

    Finding Matches Across Columns and Writing Corresponding IDs

    I have an Excel spreadsheet where each row contains information about some articles (in columns A:D).
    Please find the attachments.

    I want to create a summary that shows which article/s includes the related method.
    I mean that I want to write the article's ID to the area with a yellow highlight as in the picture.

    For example;
    I want to check if the value in cell G3 appears in any cell within columns C or D. If a match is found, I want to write the corresponding Article ID (from column A) into cell H3. If there are multiple matches, I want to write the second article_ID to the next column in the same row.
    Any help would be greatly appreciated.

    find_and_write_ID.xlsxfind_and_write_ID.xlsx
    Attached Images Attached Images
    Last edited by student_md; 08-06-2023 at 01:19 PM.

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Finding Matches Across Columns and Writing Corresponding IDs

    H3=IFERROR(INDEX($A$2:$A$100,AGGREGATE(15,6,ROW($A$2:$A$100)-ROW($A$2)+1/($C$2:$D$100=$G3)/($C$2:$D$100<>""),COLUMNS($A$1:A1))),"")

    Copy across and down

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Finding Matches Across Columns and Writing Corresponding IDs

    Clean all exptected result in G2:M6

    G2
    =UNIQUE(TEXTSPLIT(TEXTJOIN(",",1,C2:D10),,","))

    H2
    =TRANSPOSE(FILTER($B$2:$B$10,($C$2:$C$10=G3)+($D$2:$D$10=G3)))

    copied down.
    Attached Files Attached Files

+ 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 partial matches from two different columns
    By Jnc_1971 in forum Excel General
    Replies: 8
    Last Post: 04-28-2022, 10:40 PM
  2. [SOLVED] Multiple 'If Instr' Scenario, Finding matches between 2 columns
    By unit285 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2019, 11:45 AM
  3. [SOLVED] Finding consecutive word matches between 2 columns
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2018, 12:17 PM
  4. [SOLVED] Comparing two data sets and finding matches or non matches
    By b0bertini in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2017, 09:34 AM
  5. Finding matches in two separate columns
    By khemistry1911 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-18-2015, 01:07 PM
  6. Finding Matches Based on 3 Columns
    By marshymell0 in forum Access Tables & Databases
    Replies: 7
    Last Post: 04-05-2013, 09:56 AM
  7. Finding the total number of matches within two columns?
    By mikexcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2007, 02:47 PM

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