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

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 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>