+ Reply to Thread
Results 1 to 5 of 5

Compare multiple columns & rows in tables for matches

  1. #1
    Registered User
    Join Date
    01-27-2023
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    11

    Compare multiple columns & rows in tables for matches

    What I'm trying to do is have a VBA or formula to compare the data between multiple columns in two tables to make sure all data matches, but I wanted to see if there was an easier way to do it besides hiding columns that do individual checks for each cell and then having the final output be a count if function and output a yes or no based off matches. Ideally it would be a one cell formula that doesn't need to rely on anything but the data but let me know if it's possible or if my original plan is easier.

    For further details, here's what I'm looking for.
    • exact matches between two cells down to row 150 for multiple columns. Only 3 columns between the 2 tables are needed to be matched
    • i.e. (C1 = I1, D1=J1, E1=K1), etc, and it checks each row for this down to row 150
    • potentially to ease things cells that don't need to be checked are empty
    • If all data matches it outputs a "yes", if there is greater than or equal to 1 mismatch then it outputs "no"

    Any help is appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Compare multiple columns & rows in tables for matches

    Hi,
    try to attach a sample file with data structured as in original.
    "Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen."
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    01-27-2023
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Compare multiple columns & rows in tables for matches

    Made a quick example that should hopefully show what I'm trying to do better
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Compare multiple columns & rows in tables for matches

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-27-2023
    Location
    Dallas, TX
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Compare multiple columns & rows in tables for matches

    Your solution was close but helped me realize I overlooked a very simple solution that I could have done. I changed it to sum table1 minus sum table2 and if they don't equal 0 then I get the error. Thanks!
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Compare two tables, find matches, and extract rows based on matches.
    By arcticspace in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-21-2022, 06:35 AM
  2. [SOLVED] Extract multiple matches into separate rows, but with tables
    By MCdyna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2021, 05:14 AM
  3. Compare two tables and find records without matches
    By Isaacliu in forum Access Tables & Databases
    Replies: 1
    Last Post: 11-14-2019, 11:01 PM
  4. Looking for info on updating a macro to compare multiple columns and displaying matches
    By bills83838 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-07-2018, 10:54 PM
  5. Replies: 1
    Last Post: 09-26-2013, 12:16 PM
  6. [SOLVED] compare two columns, delete non matches in partial rows using shift up
    By acp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2013, 09:39 AM
  7. [SOLVED] Finding multiple matches of a single input across multiple rows and columns
    By gingerdog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2012, 02:54 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