function copyRoutine2List(){
//二次元配列に
var routine_data = routine_spreadsheet.getRange(1,1,routine_spreadsheet.getLastRow(),3).getValues();
routine_start_cell = 2 //Routineはいつも2行目からコピー
shoppinglist_start_cell = settings_spreadsheet.getRange(2,2).getValue()
var i = -1
Logger.log(routine_start_cell)
for (var j = routine_start_cell; j<=routine_spreadsheet.getLastRow() ; j++){
Logger.log(routine_start_cell)
to_buy = "[routine]"+routine_data[routine_start_cell + i][0] + routine_data[routine_start_cell + i][1]
bikou = routine_data[routine_start_cell + i][2]
Logger.log(to_buy)
shopppinglist_spreadsheet.getRange(shoppinglist_start_cell + i + 1,1).setValue(to_buy)
shopppinglist_spreadsheet.getRange(shoppinglist_start_cell + i + 1,3).setValue(bikou)
i++;
}
settings_spreadsheet.getRange(2,2).setValue(shoppinglist_start_cell + i + 1)
}