Data table comarision and update

You can probably do something along the lines of:

Reading rows from both datables
for each row
if data1<>data2 then

data1 assigned as data2
counter = counter+1

then at the end just write the value of counter to the excel as that will be how many rows got updated.