Best way to Compare 2 Workbooks?

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
146
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I am at the point of pulling all my hair out.
I found many VBA scripts, but they are more for Sheets rather than workbooks and having to provide a path to the Workbook. If I send it to someone else, then the script will be invalid because the path is no longer valid, correct?
Some of the script were so long and complicated that for a newbie like me, I was lost as to where or how I could tailor it to my needs.

Here's what I am trying to accomplish:
  • Compare 2 Workbooks: Compare the current Workbook with a new Workbook.
  • Columns L & M are the columns that are to be compared, starting on row 4, in both Workbooks. So in other words WB1 L&M compared to WB2 Columns L&M.
  • Is it better to add a blank column to add the new data or copy all changed rows to a new sheet?
Your guidance is greatly appreciated.
 
Last edited:

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
146
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
OK, all my hair is gone today.

I tried to use this formula instead to see if there is any changes in columns "L"&"M" for Sheet1 & Sheet2, based on the unique number in column "Q". I decided to copy the Workbook1 Sheet1 to Workbook2 Sheet2, so that it's all in the same workbook and not have to worry about finding the correct path to the file.

Is is the correct way to do it? I would prefer VBA Script.
For a noob, creating a wroking formula is hard.

Excel Formula:
=IFERROR(VLOOKUP($Q2,Sheet1!$L2:$M1000,5,FALSE),"No Match")
 

Watch MrExcel Video

Forum statistics

Threads
1,128,114
Messages
5,628,783
Members
416,338
Latest member
Spartan5305

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
Top