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 Auto-Number/RowID column is. Or, you can use that exact formula and just rename your Auto-Number 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 Auto-Number/RowID column is. Or, you can use that exact formula and just rename your Auto-Number 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
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.5K Get Help
- 433 Global Discussions
- 152 Industry Talk
- 494 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 506 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!