Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I need some kind of "autoincrement field" in my spreadsheet. I've added =ROW() formula to first column. But as I'm adding new rows - I have to apply this formula to new created rows as well. Is there any ways to do it automatically?

share|improve this question
add comment

migrated from superuser.com Apr 14 '13 at 20:36

This question came from our site for computer enthusiasts and power users.

1 Answer

up vote 1 down vote accepted

Use the following formula for that:

=ARRAYFORMULA(ROW(A:A))

I strongly advise you to use hard coded Id's. If for some reason the sheet gets re-arranged, then the Id's will follow with that re-arrangement. An ARRAYFORMULA will stick to its plan and present the range as ever.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.