Попробуйте это:
function archiveYesterday() {//run on a timebased trigger after midnight
var ss=SpreadsheetApp.openById('SpreadsheetId');
var ash=ss.getSheetByName('archivesheet')
var sheetsA=['','Monday','Tuesday','Wednesday','Thursday','Friday',''];
var rangeA=['','A2:G9','A2:G9','A2:G9','A2:G9','A2:G9','A2:G9',''];//Daily Ranges if they change
var dayidx=new Date().getDay()-1;
if(dayidx>0 && dayidx<6) {
var sh=ss.getSheetByName(sheetsA[dayidx]);
if(sh) {
var rg=sh.getRange(rangeA[dayidx]);
var vA=rg.getValues();
for(var i=0;i<vA.length;i++) {
ash.appendRow(vA[i]);
}
}
}
}