I have a script that creates a timed trigger to move data from a source sheet into a destination sheet. What I would like to add is the ability to only take unique/new values from the source sheet that aren't present in the destination and add them to the destination sheet.
The script I currently have passes all non-empty values from the source sheet into an array that is then appended or written over the destination data.
I tried reading the values of both sheets and using a for loop through both sets and pushing non-equal values into a new array but that ended up just copying all the values for the entire length of the sheet. I have also tried concat'ing both arrays and then looping through that for unique values but that ended up giving me blanks as well.