get value in one column in spreadsheet using google apps script

前端 未结 3 939
渐次进展
渐次进展 2020-12-08 01:03

I want to get a string value -to compare it later on with an if condition- from only one column in spreadsheet using Google apps script. I searched the internet and I found

3条回答
  •  一生所求
    2020-12-08 01:38

    much easier way to loop through the rows and get a column value.. hope that helps

    var values = SpreadsheetApp.getActiveSheet().getDataRange().getValues();
    
    values.forEach( function(row) {
      row[4] // column index as 4
    });
    

提交回复
热议问题