I am trying to increment a cell in column B, that is on the same row as a cell in column F, when this last cell is edited. This is what I've come up with:
function clicker(e) {
var ss = e.range.getSheet();
var ss_name = ss.getName();
if ((ss_name == "Report 1") && (e.range.getColumn() == 6)) {
var row = e.range.getRow();
var value = e.getRange(row, 2).getValue();
value++;
e.range.setValue(value);
}
}
This is the sheet: https://docs.google.com/spreadsheets/d/1AJYVX0xHwdqBbg_8aDbrS1kuOFzWs6dB7x7I-tA6vYw/edit?usp=sharing
Unfortunately, the cell value does not increment, as desired. I think that the error is in the second part of the code, within the second curly brackets, but I can't put my finger on it.
I have followed this and this as references to try and solve my issue.