Comparing worksheets

G

Guest

I have two large worksheets with 1000+ rows and 18 columns. I want to compare worksheets to find out what does match between the two. Any ideas how I can do this?
 
N

NickHK

Gabriel,
One way would be to set up a 3rd sheet, whose formula for all relavant cells
is something like:
Cell A1: =IF(Sheet1!A1=Sheet2!A1,"Match","Different")

Or alternatively loop through the sheets comparing values in code:

If WS1.range(i,j).value=WS2.range(i,j).value then
'.........
Else
'.........
End If

You would then have to decide what to do with these results.

NickHK

Gabriel said:
I have two large worksheets with 1000+ rows and 18 columns. I want to
compare worksheets to find out what does match between the two. Any ideas
how I can do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top