Home > Blockchain >  Create Unique ID from 0 to Upward Google Sheets
Create Unique ID from 0 to Upward Google Sheets

Time:11-19

I have a sheet where data is being added to the last empty row and inserting the new row between the rows which has already data.

I want to create a Unique Numeric number that will be 0 to upward in sequence. Like we use =IF(B3<>"",B2 1,"").

But when new row is added the formula is missed I want to Add unique number for each row.

I have tried with that enter image description here

CodePudding user response:

In the top row,

=ARRAYFORMULA({"ID";SEQUENCE(COUNTA(B:B) 0)})

Change 0 to 1 or 2, if you want some blank row offset.

CodePudding user response:

ALTERNATIVE SUGGESTION

If I have understood your goal correctly, you may also try this custom script ID below that you can enter image description here

The custom script adjusts when there are newly added data:

enter image description here

The custom function also adjusts when there's an empty row in between the range:

enter image description here

  • Related