function myFunction() { let sheetData = SpreadsheetApp.getActiveSpreadsheet() .getSheetByName("Data") .getDataRange() .getValues(); for (let i = 1; i < sheetData.length; i++) { Logger.log(sheetData[i][0]); } SpreadsheetApp.getActiveSpreadsheet() .getSheetByName("Data") .getDataRange() .setValues(sheetData); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter