\'ve been trying get google spreadsheet to add data into a cell automatically when another cell is edited, however I can only seem to make the onedit function work globally.
function onEdit(e) { var s = e.source.getActiveSheet(); if( s.getIndex()== 2 ) { var r = s.getActiveRange(); if( r.getColumn() == 2) { s.getRange(r.getRow(),14).setValue(new Date()); } } }