Here is the scenario: When ever there is value "1" in column A of Sheet 1 i want to insert formula "=UNIQUE(Sheet2!B2:B1000)" in column B of Sheet 1.
I have only this formula which is used to delete contents:
function onEdit(e) {
if(e.range.columnStart === 1) {
e.range.offset(0,1).clearContent();
}
}
but I am not able to insert formula based on a cell value