Skip to content
Related Articles

Related Articles

How to Compare Two Lists or Datasets in Excel?

View Discussion
Improve Article
Save Article
  • Last Updated : 05 Jul, 2022

All the time there is a necessity in Excel to look at two records or two informational indexes to track down absent or matching things. As this is Excel, there is in every case more than one method for getting things done, including looking at information. From equations and Conditional Formatting to Power Query. Let’s take a look at a number of ways of contrasting two records in Excel and we will likewise take a gander at looking at whole columns of an informational collection. The following are a few distinct strategies used to look at two arrangements of a segment in Excel for matches and contrasts.

  • Strategy 1: Compare Two Lists Using Equal Sign Operator.
  • Strategy 2: Match Data by Using Row Difference Technique.
  • Strategy 3: Match Row Difference by Using IF Condition.
  • Strategy 4: Match Data Even If There is a Row Difference.
  • Strategy 5: Highlight All the Matching Data utilizing Conditional Formatting.

Presently, let us talk about every one of the techniques exhaustively with a model: –

Strategy 1: Compare Two Lists Using Equal Sign Operator

We should follow the underneath moves toward looking at the two records.

  • Immediately after the two columns, we must insert a new column in the next column.


  • We should place the equation in cell C2 as =A2=B2.


  • This equation tests whether cell A2 esteem is equivalent to cell B2. On the off chance that both the cell values are coordinated, we will come by the outcome as “TRUE” or “FALSE.”


  • We will drag the recipe to cell C9 to decide on different qualities.


Any place we share similar qualities practically speaking lines, we obtain the outcome as “TRUE” or “FALSE”.

Strategy 2: Match Data by Using Row Difference Technique

You probably won’t have utilized the “Column Difference” strategy in your working environment. Be that as it may, today, we will tell you the best way to utilize this procedure to match information column by line.

  • To feature non-matching cells column by line, we should choose the whole information first.
  • Presently, we should press the successful easy route key “F5” to open the “Go to Special” instrument. Presently in the “Go-To” window, press the “Special” tab.


  • In the following window, we should go to the “Go To Special” and pick the “Row differences” choice. Then, at that point, click on “OK.”


  • We will obtain the accompanying outcome.


As we can find in the above window, it has chosen the cells any place there is a line distinction. Hence, we should fill in a variety to feature the line contrast values.



Strategy 3: Match Row Difference by Using IF Condition

How might we leave out the IF condition when we have any desire to match information column by line. In the primary model, we have by the same token “TRUE” or “FALSE.” But consider the possibility that we really want an alternate outcome rather than the default consequences of by the same token “TRUE or FALSE.” Assume we want an outcome as “Coordinating” in the event that there is no column distinction and the outcome ought to be “Not Matching” on the off chance that there is a line contrast.

  • To begin with, we should open the IF condition in cell C2. Apply the logical test as A2=B2.
  • Note: Logical Test=>In excel, toward the early phases of learning, it is a seriously troublesome errand to grasp the idea of consistent tests. Be that as it may, when you ace this, it will be significant expertise to your CV. As a general rule, in succession, we utilize a legitimate test to match various models also, show up at the ideal arrangement. To succeed, we have as numerous consistent equations. Go to the Formula tab and snap on the Logical Function gathering to see every one of the sensible recipes.


  • We really want to apply the recipe to come by the outcome. We should drag the recipe to cell C9 to decide on different qualities.


Strategy 4: Match Data Even If There is a Row Difference

The matching information on the column distinctions system may not work continually; the value may be in various cells also. So we truly need to include different advances in these circumstances. As of now, look at the underneath data. So let us utilize our capability VLOOKUP(Note: The VLOOKUP succeed capability looks for a specific worth and returns a relating match in view of an exceptional identifier. An exceptional identifier is extraordinarily connected with every one of the records of the information base.)



Along these lines, if the data matches, we get the Name; regardless, we get the bumble regarded as #N/A. Showing mistake values doesn’t look great. So rather than showing the mistake, let us supplant them with “Not Available.” For this, utilization of the IFERROR( Note: The IFERROR capacity in Excel truly investigates a recipe for mix-ups and returns a foreordained worth rather than the goof. This returned worth can be a text, an empty string, a reasonable worth, a number, etc. The bumbles are dealt with by the capacity to consolidate “#N/A,” “#DIV/0!,” “#NAME, and so forth) capability in excel.



Strategy 5: Highlight All the Matching Data utilizing Conditional Formatting

On the off chance that you hate excel recipes, relax. We can in any case match information without the equation. For instance, utilizing straightforward restrictive formatting (Note: Conditional designing in excel helps design scope of cells in view of the satisfaction of at least one circumstance. The design to be applied can either be chosen from the different choices given in Excel or made without any preparation by the client. Contingent designing chips away at the standard “if so, then that ought to be finished.”) in excel, we can feature every one of the matching information of two records.

  • We ought to first pick the data. Presently, we should go to “Home” and “Contingent Formatting” and pick “Highlight Cell Rules” > “Duplicate Values.”





  • Subsequently, we can see the “Duplicate Cell Values” arranging window.
  • We can pick the different design tones starting from the drop list in excel. Select the primary arranging tone and press the “OK” button.
  • This will feature every one of the matching information from the two records.


  • Simply for the situation, rather than featuring every one of the matching information, to feature not matching information, then, at that point, we can go to the “Duplicate Values” window and pick the choice “Unique.”
  • Subsequently, it will feature every one of the non-matching qualities, as displayed beneath.


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!