const sendGoogleForm_ = async ({ name, message, contact, target }) => {
const url = 'https://docs.google.com/forms/u/0/d/e/' + scope_.googleFormId + '/formResponse';
const formData = new FormData();
formData.append('entry.563792130', name);
formData.append('entry.2109788644', message);
formData.append('entry.1663728525', contact);
formData.append('entry.935276218', target);
return fetch(url, { mode: 'no-cors', method: 'post', body: formData });
};
{ }
=QUERY({B:D;F2:H};"select Col2, sum(Col3) where Col2<>'' group by Col2";1)
Не задавайте вопросы без примера!
/* exported userActionCopyValues */
function userActionCopyValues() {
copyValues_('rg');
}
function copyValues_(e) {
const sheet = SpreadsheetApp.getActive().getSheetByName('Ускорить работу скрипта');
const dataRange = sheet.getDataRange();
const values = dataRange.getValues();
const lastValKMNOV = values.findLast((row) => row[11] === e);
if (!lastValKMNOV) {
console.warn(`lastValKMNOV ${lastValKMNOV}`);
return;
}
const lastIndexBF = values.findLastIndex((row) => row.slice(1, 1 + 5).join(''));
if (lastIndexBF === -1) {
console.warn(`lastIndexBF ${lastIndexBF}`);
return;
}
sheet
.getRange(lastIndexBF + 2, 2, 1, 5)
.setValues([[lastValKMNOV[10], lastValKMNOV[11], lastValKMNOV[12], lastValKMNOV[13], lastValKMNOV[21]]]);
}
=LET(
_data;QUERY(
QUERY(
A1:D;
"select D, B, count(B) group by D, B";1
);
"select Col1, count(Col1) group by Col1";1);
FILTER(_data;CHOOSECOLS(_data;2)=1)
)
=LET(
_data;QUERY(QUERY(A1:D;"select D, B, count(B) group by D, B";1);"select Col1, count(Col1) group by Col1";1);
_list;FILTER(CHOOSECOLS(_data;1);CHOOSECOLS(_data;2)=1);
{A1:D1;FILTER(A:D;NOT(ISNA(MATCH(D:D;_list;0))))}
)
makeCopy
saveAndClose
[CTRL]+[J]
=LET(_res,COUNTIF(SPLIT(E6, ","), "1"),IF(_res>0,_res,""))
=IMPORTXML(ссылка; запрос_xpath; 'ru-RU')