search spreadsheet column for text in a string and return a result in another column

前端 未结 2 1478
灰色年华
灰色年华 2020-12-31 22:23

Using google apps script and spreadsheet, I have been trying to do a simple thing but can\'t figure out the problem. I have a sheet, with a blank column and a column with te

2条回答
  •  感动是毒
    2020-12-31 23:05

    This is a possible simple script that does what you need. (If your sheet contains formulas or custom function then it should be modified to take it into account)

    function test(){
      var sh = SpreadsheetApp.getActiveSheet();
      var data = sh.getDataRange().getValues(); // read all data in the sheet
      for(n=0;n

提交回复
热议问题