javascript setvalues code example
Example 1: setValues()
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var values = [
[ "2.000", "1,000,000", "$2.99" ]
];
var range = sheet.getRange("A1:C1");
range.setValues(values);
Example 2: setValues
let SHEET = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
let values = SHEET.getRange(2, 1, SHEET.getLastRow()-1, 1).getValues();
let valuesDestination = SHEET.getRange(`B2:B${SHEET.getLastRow()}`)
valuesDestination.setValues(values);