Compare each record of 2 DataTable with same columns and update one Datatable record from another based on flag column in 2nd datatable

Hi All,

I created 2 excel files with similar columns/same data . Bot is processing and updating some records (2-3 columns data ) in one of the excel file( suppose temp ) , where we are adding one extra column as ’ Flag’ to identify. Now we need to check this temp file with the left original (lets say master file ) and compare which records got updated based on flag and update those particular records only in the master file. Any help ?