Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

Adding multiple new rows in Google Sheets based on a cell value

$
0
0

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.

enter image description here


Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images