Best way to Compare 2 Workbooks?

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
210
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:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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")
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

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