Compare Two Lists in Excel

Posted on 2014-12-15
Last Modified: 2014-12-15

i have seen many cell by cell comparisons in excel, also column by column comparison.

however i want is comparison of by entire row values.

for example, see attached file.  i have two sheets "List 1" and "List 2"  in sheet List 1 i want to put a text in column N for those rows that thier match found in List 2 and similalrly, i want to put text in Column N of List2 for those rows that thier match found in List1.

Question by:Flora
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 250 total points
ID: 40500062
Please find attached.

I've also added some conditional formatting to reflect the colors you used.
LVL 49

Accepted Solution

Rgonzo1971 earned 250 total points
ID: 40500065

you could these 2 formulas as Array formula Ctrl-Shift Enter

=IF(IFERROR(MATCH(A2&B2&C2&D2&E2&F2&G2&H2&I2&J2&K2&L2&M2,List2!$A$2:$A$25&List2!$B$2:$B$25&List2!$C$2:$C$25&List2!$D$2:$D$25&List2!$E$2:$E$25&List2!$F$2:$F$25&List2!$G$2:$G$25&List2!$H$2:$H$25&List2!$I$2:$I$25&List2!$J$2:$J$25&List2!$K$2:$K$25&List2!$L$2:$L$25&List2!$M$2:$M$25,0),0),"Found in List 2","")

=IF(IFERROR(MATCH(A2&B2&C2&D2&E2&F2&G2&H2&I2&J2&K2&L2&M2,List1!$A$2:$A$25&List1!$B$2:$B$25&List1!$C$2:$C$25&List1!$D$2:$D$25&List1!$E$2:$E$25&List1!$F$2:$F$25&List1!$G$2:$G$25&List1!$H$2:$H$25&List1!$I$2:$I$25&List1!$J$2:$J$25&List1!$K$2:$K$25&List1!$L$2:$L$25&List1!$M$2:$M$25,0),0),"Found in List 1","")

See example


Author Closing Comment

ID: 40500075
Thank you very much guys.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now