function myFunction_Button1() { var spreadsheet = SpreadsheetApp.getActive(); spreadsheet.getRange('G7:G8').activate(); spreadsheet.getCurrentCell().setFormula('=IFERROR(IF(COUNTIF(B7:F7;"");"";IF(INT(E7+F7-3/24-C7-D7-VLOOKUP(B7;UTC!A2:B1640;2;)/24)<0;"NoSho";INT(E7+F7-3/24-C7-D7-VLOOKUP(B7;UTC!A2:B1640;2;)/24)));"Введите данные в UTC-")\n');