Вы можете сделать что-то по следующим строкам (проверьте встроенные комментарии):
function updateChildren() {
var childrenIds = ["child1-id", "child2-id", "child3-id"]; // Array with the ids of the children, modify accordingly (can be more than 3)
var master = SpreadsheetApp.openById("master-id"); // Master id (modify accordingly)
var children = [];
var masterSheet = master.getSheetByName("Summary"); // Name of the Master sheet with data
// Get the source values in Master:
var firstRow = 2;
var firstCol = 1;
var numRows = masterSheet.getLastRow() - firstRow + 1;
var numCols = masterSheet.getLastColumn() - firstCol + 1;
var masterValues = masterSheet.getRange(firstRow, firstCol, numRows, numCols).getValues();
childrenIds.forEach(function(childId) { // Iterate through each children id
var childSheet = SpreadsheetApp.openById(childId).getSheetByName("Summary"); // Get sheet with data (sheet is named "Summary")
var childNumRows = childSheet.getLastRow() - firstRow + 1;
var childValues = childSheet.getRange(firstRow, firstCol, childNumRows, numCols).getValues(); // Get child values
masterValues.forEach(function(masterRow) { // Iterate through each row with data in Master
childValues.forEach(function(childRow, i) { // Iterate through each row with data in Child
if (masterRow[0] === childRow[0]) { // Check if there is a match in column A
childSheet.getRange(i + firstRow, 3, 1, 2).setValues([[masterRow[2], masterRow[3]]]); // Update columns C-D in Child
}
});
});
});
}
Ссылка: