I am trying to take a column of names and put them into an array.
function printDriver() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var driverArray = [];
driverArray = sheet.getRange("H2:H34").getValues();
driverArray.join('').split('');
I am unsure if this is the correct way to do it. Names only appear in H2:H34
of sheet 0 in my spreadsheet. I want to get all those values, put them into an array and delete empty values but I believe that I end up with an empty array.