function auto_set_date2() {
let ss= SpreadsheetApp.getActiveSpreadsheet();
let sheet = ss.getSheetByName('1');
let ar = sheet.getActiveRange();
let a_col = ar. getColumn();
//let a_row = getRow();
if(a_col === 26 && ar.offset(0,-2).getValue()===""
){
ar.offset(0,-2).setValue(new Date());
}
function _onEdit(e) {
let sheet = e.source.getActiveSheet();
let address = e.range.getA1Notation().toUpperCase();
let row = e.range.getRow();
let col = e.range.getColumn();
let newValue = e.value;
let oldValue = e.oldValue;
if ((["1"].includes(sheet.getName())) && (col===26) && (newValue==="Обработано")) {
sheet.getRange(row, 26-2).setValue(new Date());
};
};