I have two sheets on one spreadsheet:
https://docs.google.com/spreadsheets/d/1ahtB9M6rl6aHmj51ZlP_qDqyUwhpsSVg1r16BafcKIo/edit?usp=sharing
Using Google Apps Script, I want to update a value in column C on the "Report" sheet, with a value from column E on the "New Data" sheet, IF the values in the ID column on each sheet match.
In production, I'm expecting there to be be multiple unique matches. How would I best do this?
As a simple example, in the mock sheets below, I would like the value in the "STATE" column of the Report Sheet where the row ID is 12 to update from "Queued" to "Won".
Report Sheet
ID | STATE
12 | Queued
34 | Lost
New Data Sheet
ID | STATE
56 | Lost
12 | Won