I'm completely new to Google Script so bear with me. I'm attempting to write a script that will take data from several rows and columns and then rewrite it into a single column with spacing.
so row
1a 1b 1c
2a 2b 2c
3a 3b 3c
will become...
1a
1b
1c
2a
2b
2c
etc...
I don't really have anything so far. I don't understand how each different piece of data is being accessed in the array. Any help/guidance would be appreciated.
function copyRow(){
var sheet = SpreadsheetApp.getActive();
var numRows = sheet.getDataRange().getNumRows();
var rowIdx = sheet.getActiveRange().getRowIndex();
sheet.getRange(rowIdx, 1, 1, sheet.getLastRow()).getValues();
for(var i = 0; i < numRows; i++){
}
}