[Красный ,2, Закрыт],
[Зеленый ,4, Открыт],
[Желтый,6, Новый].
function copyRange() {
const book = SpreadsheetApp.getActiveSpreadsheet();
const sheet = book.getSheetByName('Пример');
const fromRange = sheet.getRange('A2:C4');
const fromValues = fromRange.getValues();
const fromColors = fromRange.getBackgrounds();
const values = fromValues.filter(([_, __, value]) => value !== 'Закрыт');
const colors = fromColors.filter((_, i) => fromValues[i][2] !== 'Закрыт');
const toRange = sheet.getRange(1, 5, values.length, values[0].length);
sheet.getRange(1, 5, sheet.getLastRow(), 3).clear();
toRange.setValues(values).setBackgrounds(colors);
}