I need help splitting a string from cell A1
into separate cells on row 2
using Google Sheets App Script. The current script I have is only placing the first letter in cell A2
. Below is my existing code:
function SplitInputtedWord() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('A2').activate();
spreadsheet.getCurrentCell().setValue(spreadsheet.getRange('A1').getValue().split(""))
spreadsheet.getRange('A1').activate();
spreadsheet.getActiveRangeList().clear({contentsOnly: true, skipFilteredRows: true});
};