Fill a cell with timestamp of another cell edit ONLY if another cell is not blank
问题 I need fill a cell in google spreedsheet with the timestamp of the another cell's edition. But this timestamp should be show only if the another cell is edited with some content, not with erase the cell. I have been try with this code, but the timestamp is shown also if i erase the another cell. function onEdit(e) { if ([8].indexOf(e.range.columnStart) != -1) { if ([8].indexOf(e.range.columnStart) === '') { e.range.offset(0, -7).setValue('0'); } else e.range.offset(0, -7).setValue(new Date())