build array from spreadsheet rows