function myFunction() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet2 = ss.getSheetByName("main");
var sheet1 = ss.getSheetByName("ga");
var lastColumn = sheet2.getLastColumn();
var range1 = sheet2.getRange(1, lastColumn, 100).getValues();
var range2 = sheet2.getRange(1, lastColumn-2, 100).getValues();
var vv1 = sheet1.getRange(3, 10);
var arr = range1, arr2 = range2, arr3 = [];
for (i=0; i < arr.length; i++) {
arr3.push((arr[i]/arr2[i])-100);
}
sheet1.getRange(1, 10, 1, 100).setValues([arr3]);
//тут проблема
sheet1.getRange("J3:J").copyTo(sheet2.getRange(1,lastColumn+1), {contentsOnly:true});
}