Comparing 2 tables with 3 column values and display the unmatched row in another sheet

VbDom

New Member
Joined
Mar 15, 2021
Messages
2
Office Version
  1. 2013
  2. 2010
  3. 2007
Platform
  1. Windows
Hi everyone,
I'm having two tables in sheet1. One table is from Column A to G and another table is from Column M to Q. So, I have to compare both the tables, with 3 columns values as condition and if doesn't matches with any of the 3 values entire row should copied on to the next sheet. Is there anyway to achieve this using VBA code. Please let me know. Any help would be grateful!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hello, do you want to compare the two tables among themselves or with another three columns. It will be easier to provide you with the solution if you can provide a sample of your data using xl2bb

aslo among which three column you want to compare, please specify
 
Upvote 0
Hi @ER_Neha. Thanks for your reply. Below you can find the mini-sheet, that I have uploaded. Here I wanted to compare id, rating and work hours column between 2 tables. With these columns as condition I wanted to display the unmatching rows in the next sheet. For example, if we are starting from the table on the left side, the above mentioned 3 columns should be compared with the right side table and if any one of the values is found to be not matching it should be displayed on the next sheet.
test.xlsm
ABCDEFGHIJKLM
1IDNAMERATINGWRK_HOURSRATINGIDNAMESWRK_HOURS
2A-1SANNAYA8AA-1SANNAY8
3A-2BINDOB8BA-2BINDO8
4A-3VINODA8AA-3VINOD8
5A-4KUMARA8AA-4KUMAR8
6A-5PAULLB8BA-5PAULL8
7A-6PETERA8AA-6PETER8
8A-7THOMPC8CA-7THOMP8
9A-8SAMD16DA-8SAM8
10A-9WILSONA8AA-10KOOPER8
11A-10KOOPERA8AA-11VARUN8
12B-1JASONB8BB-1JASON8
13B-2NELSONA4AB-2NELSON4
14B-3JAGDISHC8CB-3JAGDISH8
15B-4KUMARD6DB-4KUMAR6
16B-5SHYAMA8AB-5SHYAM8
17B-6CHARLIED8DB-6CHARLIE8
18B-7KISHOREA8AB-7KISHORE8
19B-8MASONA8AB-8MASON8
20B-9JOHNB8BB-9JOHN8
21B-10KIRANB8BB-10KIRAN8
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:ACell ValueduplicatestextNO
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top