Hello I have tried to figure this out for many days and I just can't. Can I lean on you guys for some help?
I am pulling 2 columns from a sheet into an array, then I am looping the array overwriting the second column of the array to become a SQL insert string. Then I write the array to another sheet. The trouble is I really only want to write column 2 of the array to the new sheet. The first column is not needed and it actually occupies cells I need because the price history I am pulling puts the google sheet over the 5,000,000 cell limit. If I can write only one column it won't go over the limit.
//this code is running in a loop returning each different stock in a list of tickers
//get 2 columns from the price history and put them in an array
const PRICERANGE=SheetPriceHistory.getDataRange();
var PRICEARRAY=PRICERANGE.getValues();
//append the output of the the entire array to the other sheet.
SheetScript.getRange(SheetScript.getLastRow()+1,1,PRICEARRAY.length,PRICEARRAY[0].length).setValues(PRICEARRAY);
// this is where I would like to write just column 2 of the array to the SheetScript sheet.