Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to vlookup to compare two lists in separated worksheets?

doc vlookup compare two sheets 1
doc vlookup compare two sheets 2

Supposing, I have two worksheets with a list of names as following screenshots shown, now, I want to compare these two lists and find the matching names in Names-1 if they exit in Names-2. It is painful to do such a comparison manually one by one between two sheets, this article, I will talk about some quick tricks to help you to finish it without effort.

Vlookup to compare two lists in separate worksheets with formulas

Vlookup to compare two lists in separate worksheets with Kutools for Excel


Vlookup to compare two lists in separated worksheets

If you have Kutools for Excel, with its Select Same & Different Cells feature, you can find and highlight the same or different values from two separate worksheets as quickly as you can.

doc vlookup compare two sheets 9

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!



The following formula can help you to extract the names both in Names-1 and Names-2 sheets, please do as this:

1. In Names-1 sheet, select a cell which beside your data, please enter this formula: =VLOOKUP(A2,'Names-2'!$A$2:$A$19,1,FALSE), and press Enter key, if the names in this sheet, it will display the name, if not, an error value will be returned, see screenshot:

doc vlookup compare two sheets 3

2. Then drag the fill handle down to the cells to return the names both in Names-1 and Names-2 sheets, see screenshot:

doc vlookup compare two sheets 4

Notes:

1. Another formula: =IF(ISNA(VLOOKUP(A2,'Names-2'!$A$2:$A$19,1,FALSE)), "No", "Yes") also can help you to compare the two lists and identify if the names are exit in both sheets, after apply this formula, you can get the following result, and Yes indicates the corresponding name exists in both sheets, and No indicates not exist.

doc vlookup compare two sheets 5

2. In the above formulas: A2 is the first cell of the worksheet that you want to compare, Names-2 is another worksheet name that you want to compare, A2:A19 is the name column to be compared with.


If you have Kutools for Excel, with its Select Same & Different Cells feature, you can quickly compare two lists in separated worksheets and select or highlight the names which are both in these two sheets without any formulas.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. Get it Now .

After installing Kutools for Excel, please do as follows:

1. Click Kutools > Select Same & Different Cells, see screenshot:

doc vlookup compare two sheets 06

2. In the Select Same & Different Cells dialog box, do the following operations:

(1.) Select the data list in Names-1 sheet under the Find values in, and then select the data from Names-2 sheet under the According to;

(2.) Check Each row from the Based on section;

(3.) Choose Same Values from the Find section;

(4.) Then you can choose background color or font color for the same names which are in both sheets as you need.

doc vlookup compare two sheets 07

3. Then click Ok button, and a prompt box will pop out to remind how many matching cells have been selected, the names which are both in these two worksheets have been selected and highlighted at once, see screenshot:

doc vlookup compare two sheets 08

Click to Download and free trial Kutools for Excel Now !


Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Mike · 1 years ago
    Hi, I've downloaded the trial version to see if it can solve a challenge i have. I have two rather large worksheets, one an updated version of the other. I ran the comparison 'select same & different' tool. And on the most part it was great. However, it missed a number of differences. Is there limitations on cell/column count?
  • To post as a guest, your comment is unpublished.
    Martine Maurizio · 1 years ago
    Hello and thank you, the formula above worked extremely well for my needs. I do have one question if I may please.
    I have changed your formula slightly to the following =IF(ISNA(VLOOKUP(A62,'Recipients-2'!$D$6:$D$120,1,FALSE)), "0", "1") but what I need to do now is have a total number of times each name appears in the second list. So instead of a 0 or 1 I would like to total the number of times the company name appears in the list.
    e.g.
    ABC company is on the list 5 times ABC 5
    BCD company is on the list 2 times BCD 2
    EFG company is on the list 4 times EFG 4

    Can you please advise what I need to add to the formula to enable this to occur, if this is at all possible. Hope I have made sense.

    Thank you
    Kind regards
    Martine
    • To post as a guest, your comment is unpublished.
      Jimy · 1 years ago
      There is a sub reddit called "Excel"(Search Reddit Excel) and post this there, they are very helpful