I use a spreadsheet to keep track of journeys in a lift-club. Each day has its own row, and the number of lifts given to a person will be 0, 1 or 2.
I realized that the algorithm for the lift scheme is slightly flawed, so now I need to record each journey individually, i.e., I need to split each row in two.
There are already a lot of days on the chart. How can I add a row below each row / i.e., split every row? Usually rows are added at the end of the spreadsheet.
Best Answer
There is no default way to do it through UI of Google Spreadsheets. However, I have written a small script that you can use on your Google Spreadsheet to add rows.
To use this code, follow these steps.
In Google Spreadsheets, navigate to
Tools > Script Manager
.Click
New
in the next window, a blankcode.gs
file will be opened. Copy and Paste the above code in Code.gs and save the project.Come back to the tab that contains your original document. Open script manager again if it is not already open. Click
Refresh
at top right. Now you will see the function "addRows". In the screenshot you will see other function that I have created earlier, but you will only see one unless you already created some other function. Select it and clickRun
. Now rows will be inserted in your spreadsheet at once.