Answers for "read every cell in a column google app script"

Go
1

read every cell in a column google app script

function appendString() {
  var range = SpreadsheetApp.getActiveSheet().getActiveRange();
  var values = range.getValues();

  var modified = values.map(function (row) {
    return row.map(function (col) { 
      return col + " string"; 
    }); 
  })

  range.setValues(modified);
}
Posted by: Guest on July-13-2020
0

read every cell in a column google app script

function appendString() {
  const range = SpreadsheetApp.getActiveSheet().getActiveRange();
  const values = range.getValues();
  const modified = values.map(row => row.map(currentValue => currentValue + " string"));
  range.setValues(modified);
}
Posted by: Guest on July-13-2020
0

read every cell in a column google app script

function appendString() {
    var range = SpreadsheetApp.getActiveSheet().getActiveRange();
    var values = range.getValues();

    values.forEach(function(row, rowId) {
        row.forEach(function(col, colId) {
            values[rowId][colId] += " string";
        });
    });

    range.setValues(values);
}
Posted by: Guest on July-13-2020

Code answers related to "read every cell in a column google app script"

Browse Popular Code Answers by Language