+ Reply to Thread
Results 1 to 4 of 4

How can I find only rows that match 2 columns among multiple columns with same values?

  1. #1
    Registered User
    Join Date
    01-04-2020
    Location
    Korea
    MS-Off Ver
    excel16
    Posts
    3

    How can I find only rows that match 2 columns among multiple columns with same values?

    Hi,

    How can I find rows that only match 2 columns among multiple columns with same values?
    I need to find rows that have same values in 'layer' and 'left(distance)' columns and make another table consisting only these values.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can I find only rows that match 2 columns among multiple columns with same values?

    for your first one in J3, use this array formula...
    =INDEX($A$2:$A$30,MATCH(1,(L3=$C$2:$C$30)*(M3=$D$2:$D$30),0))
    Activate it by pressing ctrl+shift+enter at the same time so the {} appear on either end of it, you cannot put them in your self as it will not function.
    for the other columns just change the $A$2:$A$30 to B for the area, E for path, F for UFID, G for left max and H for left dista.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can I find only rows that match 2 columns among multiple columns with same values?

    if you need help with activating an array, go to this link and post #17 where I put in three PDFs to show how to activate it...
    https://www.excelforum.com/excel-gen...r-sheet-2.html

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can I find only rows that match 2 columns among multiple columns with same values?

    after giving it a little thought, once you've used that formula in J3, it would be easier for you to use these vlookup formulas in K, N, O, P and Q as it isn't an array formula. Because your sheet showed individual UFID numbers.
    in K3 =VLOOKUP(J3,$A$2:$B$30,2,FALSE)
    then in N3 and dragged right ...
    =VLOOKUP($J3,$A$2:E$30,COLUMN(E$1),FALSE)
    so the only array you would need is the first one.

+ 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 Match Based on Values on Multiple Columns
    By learnexcelvba in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2019, 10:39 PM
  2. Find duplicates in 2 columns and match values
    By alex_uk in forum Excel General
    Replies: 1
    Last Post: 05-28-2018, 09:57 AM
  3. [SOLVED] Find Duplicate Rows Where Two Columns Match
    By MCCDOM in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-29-2017, 12:27 PM
  4. Find a match from multiple columns
    By hermoraunio in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-19-2014, 08:23 AM
  5. Replies: 4
    Last Post: 05-08-2013, 02:07 PM
  6. [SOLVED] Find exact match in multiple columns in 1 row with all other rows 90,000 rows.
    By KHurt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2013, 01:38 PM
  7. VBA code to find duplicate values within multiple rows and columns
    By pcbpinoy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2011, 09:04 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