Compare Two Lists

AllisterB

Board Regular
Joined
Feb 22, 2019
Messages
120
Office Version
  1. 365
Platform
  1. Windows
I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the web.
I need to be able to know for each Person (First name +las tname) at a Branch, the differences in the Role and Date Appointed between the two Lists.
It is possible for a Branch that the Person is on one List but not on the other.
[Once the differences are identified the user will check what is the correct Information and make changes to the lists to get them to match]

I have tried using PQ Merge but couldn't get this to work.

Has anyone got any ideas

Thanks

Allister

Book2
EFGHIJKLMNOPQ
4List 100List 200
5BranchRoleAppomitedFirst NameLast NameBranchJobFirst NameLast NameAppomited
6AWorker1/03/2020MickeyMouseAWorkerMickeyMouse1/03/2020
7BManager3/06/2019DonaldDuckAManagerGoofyBrown14/03/2018
8AManager14/03/2018GoofyBrownAWorkerJasminOrange18/03/2012
9AWorker1/06/2007JasminOrangeBWorkerHarryHall1/04/2017
10BWorker30/08/2011PopeySailorCManagerJonnyAppleseed31/03/1945
11BWorker1/04/2017HarryHallDWorkerSallyTrout30/12/2018
12CManager31/03/1945JonnyAppleseed
13CWorker11/11/2011DaffyTailor
14
List 2
 
Thanks - I like this solution as it puts all details for a comination of Branch and Name on teh one row.
How do I see eth solution - do I use XL2BB ?

Thanks

Allister
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You talking to me? (post#10) [Taxi Driver 1976]

btw. XL2BB is for posting data from Excel to the post
 
Last edited:
Upvote 0
Thanks sandy - the comments were to
shaowu459
- could your solution j have one row per combination of Branch/Person.

I note your comments about use of XL2BB. I know how to use it to post - but for instace how do I see the code/ formula / PQ of a solution that is posted in reponse to my question? I can post teh image but I can't see how the solution works?

Thanks
 
Upvote 0
If user will check formula option in XL2BB you can see formula in the post
if user will post M you will see M, XL2BB doesn't contain any option to post M directly from query

btw. if you are talking to someone in thread with more than one user (except OP) use @ and username , eg. @AllisterB . It will show Alert to this user

and post expected result , will be easier for all around
 
Last edited:
Upvote 0
@sandy666

Thank you for your very helpful reply.
In regards to your posts 2, 7, 8 etc it is not clear to me if you have have checked teh formula option or the post M option.

Also can you change one of your solutions so that I get each occurance of Branch and Name(first + Last Name) on one row?

Thanks again
 
Upvote 0
I am not publishing XL2BB with formula option because I don't use formulas
I am posting XL2BB as table but if you want to see M you need to define which one result you want to see with M

eg.
Book1
CDE
3235
Sheet4
Cell Formulas
RangeFormula
E3E3=SUM(C3,D3)


for M
Column1Column2Addition
235

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table10"]}[Content],
    #"Inserted Sum" = Table.AddColumn(Source, "Addition", each List.Sum({[Column1], [Column2]}), Int64.Type)
in
    #"Inserted Sum"
 
Upvote 0
I like the look of #7 but ned each combination of Branch and Name (First Name+ Last Name) on a separate row
 
Upvote 0
Thanks - I like this solution as it puts all details for a comination of Branch and Name on teh one row.
How do I see eth solution - do I use XL2BB ?

Thanks

Allister
Sorry, i don't have computer around my hand. I will post the M code about 2 hours later. There's a timezone difference:biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,441
Members
449,225
Latest member
mparcado

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