Need Formula for RowID that will update when rows are deleted or added.
I need a column formula that will match the actual row ID even if you delete a row.
I tried using autonumbering, but it does not update if you delete a row, or add a new row in the middle of your old rows.
Ex. of AutoNumber row issue
1 (Row 2 deleted below, 3 should change to 2)
3
5 (New Row added, should change this row to 4 and the next one to 5)
4
Is this possible?
Thanks
Best Answer

Hi @Christian Graf,
Try adding a new column and use this as the column formula:
=MATCH(X@row, X:X, 0)
In this case, "X" would be whatever the name of your AutoNumber/RowID column is. Or, you can use that exact formula and just rename your AutoNumber column to "X" instead.
Answers

Hi @Christian Graf,
Try adding a new column and use this as the column formula:
=MATCH(X@row, X:X, 0)
In this case, "X" would be whatever the name of your AutoNumber/RowID column is. Or, you can use that exact formula and just rename your AutoNumber column to "X" instead.

That worked great! Thanks John!

Thanks so much !
This has been bothering me for quite a while!
Help Article Resources
Categories
Check out the Formula Handbook template!