How to perform a comparison between two excel files and remove the lines from a number that can be in both worksheets?

Hello @vinicius.botelho
you can refer Comparing Two excel files - #2 by vvaidya
you have to make change according to your need, above will only give you a start.