Compare 2 lists in Excel and List the Differences

AngleseyExcel

New Member
Joined
Feb 4, 2021
Messages
36
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I'm a little stuck on a project.

Sheet 1 has a list of people
Sheet 2 has a list of people

Sheet 3 needs to compare the lists in Sheets 1 and 2 and list the differences between them.

I'm not sure of the syntax, and how to write the indirect formula to do this ?

Any help would be greatly appreciated.

p.s. i'd rather not use conditional formatting for this.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
What do you mean by "differences" ? Are you looking for a match or non-match?
 
Upvote 0
Are you able to show some sample data of before and after so we have a better understanding of your needs. 8-10 records should suffice.
 
Upvote 0
Maybe something like this:
Formula in columns D and E will work in any version of Excel from 2010 and up. Drag the formulas down the columns as needed.
Formulas in cells G and H will only work in Excel 365.

compare lists w forum or cond formating.xlsx
ABCDEFGH
1List 1List 2 Additional NamesNames removed Additional NamesNames removed
2SamFredon List 2from List1on List 2from List1
3MikeMikeFredSamFredSam
4MaryJuneJune June
5JudyMaryDawn Dawn
6Judy  
7Dawn 
Sheet3
Cell Formulas
RangeFormula
G3:G5G3=FILTER(B2:B7,ISNA(MATCH($B$2:$B$7,$A$2:$A$5,0)),"")
H3H3=FILTER($A$2:$A$5,ISNA(MATCH(A2:A5,B2:B7,0)),"")
E3:E6E3=IFERROR(INDEX($A$2:$A$5,AGGREGATE(15,6,(ROW($B$2:$B$16)-ROW($B$2)+1)/(ISNA(MATCH($A$2:$A$5,$B$2:$B$16,0))),ROWS($D$3:D3))),"")
D3:D7D3=IFERROR(INDEX($B$2:$B$7,AGGREGATE(15,6,(ROW($B$2:$B$7)-ROW($B$2)+1)/(ISNA(MATCH($B$2:$B$7,$A$2:$A$10,0))),ROWS($D$3:D3))),"")
Dynamic array formulas.
 
Upvote 1
Solution
Maybe something like this:
Formula in columns D and E will work in any version of Excel from 2010 and up. Drag the formulas down the columns as needed.
Formulas in cells G and H will only work in Excel 365.

compare lists w forum or cond formating.xlsx
ABCDEFGH
1List 1List 2 Additional NamesNames removed Additional NamesNames removed
2SamFredon List 2from List1on List 2from List1
3MikeMikeFredSamFredSam
4MaryJuneJune June
5JudyMaryDawn Dawn
6Judy  
7Dawn 
Sheet3
Cell Formulas
RangeFormula
G3:G5G3=FILTER(B2:B7,ISNA(MATCH($B$2:$B$7,$A$2:$A$5,0)),"")
H3H3=FILTER($A$2:$A$5,ISNA(MATCH(A2:A5,B2:B7,0)),"")
E3:E6E3=IFERROR(INDEX($A$2:$A$5,AGGREGATE(15,6,(ROW($B$2:$B$16)-ROW($B$2)+1)/(ISNA(MATCH($A$2:$A$5,$B$2:$B$16,0))),ROWS($D$3:D3))),"")
D3:D7D3=IFERROR(INDEX($B$2:$B$7,AGGREGATE(15,6,(ROW($B$2:$B$7)-ROW($B$2)+1)/(ISNA(MATCH($B$2:$B$7,$A$2:$A$10,0))),ROWS($D$3:D3))),"")
Dynamic array formulas.
This is similar to what i need, but in my workbook, List 1 is in Sheet 1, List 2 is in Sheet 2, but i want the result of the additional names as you've shown above to be in Sheet 3. I'm just unsure of where i'd need to place the indirect function.
 
Upvote 0
Assuming both lists are in col A, how about
Excel Formula:
=FILTER(Sheet2!A2:A100,(COUNTIFS(Sheet1!A2:A100,Sheet2!A2:A100)=0)*(Sheet2!A2:A100<>""),"")
 
Upvote 1
Assuming both lists are in col A, how about
Excel Formula:
=FILTER(Sheet2!A2:A100,(COUNTIFS(Sheet1!A2:A100,Sheet2!A2:A100)=0)*(Sheet2!A2:A100<>""),"")
I've tried modify it using the the indirect function, but i've made a mistake somewhere, the 2 lists are on the same sheet now. The sheet name is in Cell B2.

Excel Formula:
=FILTER(INDIRECT(“’”&B2&”’”!D10:D61),(COUNTIFS(INDIRECT(“’”&B2&”’”!A10:A61),INDIRECT(“’”&B2&”’”!D10:D61)=0)*(INDIRECT(“’”&B2&”’”!D10:D61<>""),"")))
 
Upvote 0
You are using the wrong type of quotes, they should be " rather than the smart quotes.
 
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,935
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top