function sendAlert() {
var sheet = SpreadsheetApp.getActive().getSheetByName('test');
var cell = sheet.getRange("A2:A51").getValues();
Logger.log(cell);
var formattedDate = Utilities.formatDate(new Date(), "GMT+3", "dd.MM.yyyy");
var alertDate = Utilities.formatDate(cell, "GMT+3", "dd.MM.yyyy");
Logger.log(formattedDate);
//Logger.log(CELL_VALUE);
//var date = new Date();
//var alertDate = Utilities.formatDate(cell.getValue(), "GMT+0", "yyyy-MM-dd");
//var currentDate = Utilities.formatDate(date, "GMT+0", "yyyy-MM-dd");
if (alertDate !== currentDate) {
sendEmail();
cell.setValue(date);
} else {
Logger.log('Alert was already sent today.');
}
}
var filtered = range.filter(function(r){
return r.join("").length>0 && r[2] == 1; // Если функция возвращает FALSE, то строка данных будет отброшена
});