Skip to main content
Question

Compare two columns from excel files.

  • November 28, 2022
  • 5 replies
  • 222 views

sorinduru

Hello.

I have two excel files (1) and (2) that contain a column of addresses.

The "House number" column in the excel file (1) and the "Houseno" column in the excel file (2)

How could I compare the two columns and notice the similarities and differences.

Thank you very much!

 

(2)image.png

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+48

You could use a FeatureJoiner or FeatureMerger to join the two files on those two attributes (so house number and street), anything that does not join is a mismatch.


dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • November 28, 2022

You could use a ChangeDetector to identify the changes. The house number attribute would need to be the same between the files, so I would use an AttributeRenamer to change the name to match the other file, i.e. both named "House number". In the ChangeDetector, the Update Detection Key Attribute would be set to "House number". This should tell you the Adds and Deletes, and if you specify the Check Attributes parameters, it will tell you which have been updated as well.


sorinduru
  • Author
  • November 28, 2022
redgeographics wrote:

You could use a FeatureJoiner or FeatureMerger to join the two files on those two attributes (so house number and street), anything that does not join is a mismatch.

Thank you very much😀 The suggested solution works very well!

 


sorinduru
  • Author
  • November 28, 2022
dustin wrote:

You could use a ChangeDetector to identify the changes. The house number attribute would need to be the same between the files, so I would use an AttributeRenamer to change the name to match the other file, i.e. both named "House number". In the ChangeDetector, the Update Detection Key Attribute would be set to "House number". This should tell you the Adds and Deletes, and if you specify the Check Attributes parameters, it will tell you which have been updated as well.

I also tried this option. It works great too!

Thanks!


srinivasgg
Contributor
Forum|alt.badge.img+5
  • Contributor
  • November 28, 2022

you could also use transformer "DatabaseJoiner" which could results in "Joined" and "Unjoined" records.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings