start_row = sheet.max_row
for row, (data) in enumerate(data, start=1):
sheet['A{}'.format(start_row + row)].value = data
if (range.getColumn() == 1 && sheetName == 'Проверка' ){ //Проверяем
=ArrayFormula(ЕСЛИ(A2:A="";"";ЕСЛИ(B2:B="";"";B2:B-A2:A)))