I need to try and find a formula or script that can insert new rows in a Google Sheet between other rows of data, based on cell values. In the below example, cell X2 is showing "3", so we need 2 new rows inserted below.
Cell X3 shows "5", so we need 4 new rows inserted below that also, and continuing on down the sheet in the same fashion. Where a cell contains "1", there are no new rows required.
