I just want to change a cell in E5
but I can only seem to edit the first column.
var cell = sheet.getRange(2,5)
cell.setValue("TEXT");
All this does is put "TEXT" into cell E2
.
EDIT: Below is the entire code.
var sheet = SpreadsheetApp.openById("SheetID").getSheetByName('Sheet1');
function doGet(e) {
var amount = JSON.parse(e.parameter.amount)
var student = JSON.parse(e.parameter.student)
var cell = sheet.getRange(student,2)
cell.setValue(amount);
}
SAMPLE URL https://script.google.com/macros/s/mygooglesheetID/exec?amount=6&student=6