How to compare column values from two different tables and if they match then paste the value present in the first excel sheet into another

This should give you what you need