Avatar of Software Squirrel
Software Squirrel
Flag for United States of America asked on

Compare values in two Excel Sheets

I am trying to compare two separate sheets in Excel.  The problem is, each row does not match to the adjacent row.  I want to select a row and compare it to another row displaying what is missing in in either sheet.
Microsoft ApplicationsMicrosoft OfficeSpreadsheetsVBAMicrosoft Excel

Avatar of undefined
Last Comment
Saqib Husain

8/22/2022 - Mon
Brian B

Sounds like you should use a vlookup or xlookup.
You might want to attach an example showing the expected results.
Software Squirrel

ASKER
Here is an example.
example.xlsx
ASKER CERTIFIED SOLUTION
Saqib Husain

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Tom Farrar

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Software Squirrel

ASKER
@Saqib Husain, Syed  , That was almost perfect. One strange issue is that out of 450 lines, there are 5 entries that show they match and also say NO they are not in both. I verified they are. All the others that show up as NO are unique.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Saqib Husain

Make sure they do not have spaces before or after the text in both columns.
Tom Farrar

Thanks for the points..
Software Squirrel

ASKER
Saqib Husain, Syed , That is what I was thinking but didn't seem to help. It's ok. I can just ignore those. It accomplished the goal. Thanks again. 
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Saqib Husain

Would be interesting to know what's wrong. Could you please upload an excel file keeping only the erroneous rows with a few more rows for testing?
Yolanda Cuesta Altieri

Hello, I agree with Tom using conditional formatting. Did you try it?
Regards,
Yolanda Cuesta
Software Squirrel

ASKER
@Saqib Husain, Syed or anyone who wants to reply. What if I have a scenario where there are two columns The first column has a list of URL's and the second column has a list of URL's.  The first column has about twice as many values as the second column.  There are values in the first column that match the second column.

I would like to know what is missing in the second column, which is in the first column.  Also, if there values in the second column, not in the first column, I would like to know that as well. 
Your help has saved me hundreds of hours of internet surfing.
fblack61
Tom Farrar

Are you familiar with Power Query (embedded in Excel)?  You could make two tables: one out of the first column and one out of the second column.  Taking the tables into Power Query would enable you to make comparisons both ways.
Saqib Husain

You can modify the upper formula for:

What is missing in the second column
=IF(ISERROR(MATCH(A2,$B$2:$B$9,0)),A2,"")

What is missing in the first column
=IF(ISERROR(MATCH(B2,$A$2:$A$9,0)),B2,"")