Compare lists and generate new list with what is different from the first list

bh24524

Active Member
Joined
Dec 11, 2008
Messages
319
Office Version
  1. 2021
  2. 2007
Hello, as I mentioned last week I would be posting this. This is very similar to my post last week about comparing two lists and generating a third list of items that were missing. Well this time, I am looking to compare two lists and generate a third list of what is different from List 1. Periodically, we do audits on employee information between two systems to make sure they match. There are actually two different audits that we do but if I can get a solution for this one, then I can apply that the second one which has different fields, but the same number of comparisons.

SCENARIO
ABCD
1List 1
2Employee NameEmployee IDPosition CodeRate of Pay
3John Smith 1
1234567​
10305275​
$ 20.00
4John Smith 2
2345678​
10305276​
$ 20.00
5John Smith 3
3456789​
10305276​
$ 20.00
6John Smith 4
4567890​
10305275​
$ 20.00
7John Smith 5
5678901​
10305276​
$ 21.00

FGHI
1List 2
2Employee NameEmployee IDPosition CodeRate of Pay
3John Smith 1
1234567​
10305276​
$ 21.00
4John Smith 2
2345678​
10305275​
$ 20.00
5John Smith 3
3456789​
10305276​
$ 20.00
6John Smith 4
4567890​
10305275​
$ 20.50
7John Smith 5
5678901​
10305276​
$ 21.00

KLMN
1List 3
2Employee NameEmployee IDPosition CodeRate of Pay
3John Smith 1
1234567​
10305276
$ 21.00
4John Smith 2
2345678​
10305275
$ 20.00
5John Smith 4
4567890​
10305275​
$ 20.50

We are doing an audit between List 1 and 2 and looking for differences in position codes and/or pay rates. List 3 has the info of those who have something different between the two lists and lists them accordingly. John Smith1 has a different position code and a different pay rate. John Smith2 has a different position code but his pay rate is the same. John Smith4 has the same position code between the two lists but a different pay rate. So their names would be generated because one or BOTH of those fields has something different from the first list.

I'm pretty sure the formula here would utilize Aggregate but that is a function I am not at all familiar with so I definitely need help on that.
 
Yeah I've been looking into that aspect of it (only showing the disconnects). Do you have excel 365? If so, there's a new FILTER formula that only displays list info if criteria is met:

Unfortunately no. I only have 2013. We are supposed to get an upgrade, but it might not be until next year.
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Attachments

  • demo.jpg
    demo.jpg
    217 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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