Skip to content
Advertisement

Tag: google-sheets

How to push 1 D array to a column

I’m trying to push 1D array to a column but Im keep getting that error “Exception: The parameters (number[]) don’t match the method signature for SpreadsheetApp.Range.setValues.” which what I understood is that I cant use setValues for 1D array, it has to be 2D array or more. Here is my code. I tried to add before the setValues statement but

UrlFetchApp.fetch() skip on empty cell

I’ve written a script that gets an image url from a cell in Google Sheets and adds that image to a template in Google Docs. However, when the cell is empty, the script crashes: Really new to programming and would appreciate anyones help as to how to prevent the above code from crashing in the event a cell is empty

Advertisement