I want to sum two columns that have numerical values and display the results on the third column. I have the script below but that deletes the two columns and display the results on the first column.
Any suggestions?
function test2() {
var ss = SpreadsheetApp.getActiveSheet();
var rng = ss.getRange('E2:F6');
var val = rng.getValues();
for(row=0;row<val.length;row++) {
val[row][0] =val[row][0]+val[row][1];;
val[row][1] = '';
}
rng.setValues(val)
}