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

How to create static/immutable autoincrement column

$
0
0

I am aware of the manual way (add 1,2 in the first 2 rows, mark them, drag the square on the mark-outline down to where u need the numbers)and a number of ways to create the numbers with formula's, as described eg. here:How to auto increment a field

But i need a way to create the numbers automatically as a formula would do, but also need the created numbers to not change after they are created, when one row is deleted.(So it would behave like a auto-increment field in a SQL database), so i think can not be a formula directly, but would need to be a formula that creates a static value.

Can this be done at all?

Without having an idea how to do it, i could imagine a script that cuts the value and pastes it instead of the formula...

Or, probably more practical, use the script from here:Autoincrement in Google Sheets based on Google Form submission

But what would the trigger be?


Viewing all articles
Browse latest Browse all 9782

Trending Articles