Auto-numbering with formula
I am reaching out to seek your assistance regarding auto-numbering.
Here's the situation: I have a smartsheet file where one of the columns is the location, i.e., Nepal (NP), Pakistan (PK), and India (IN). And the second one is auto-numbering (where I need a formula) Now in the auto-numbering column, I want a formula so that the auto-numbering is based on the location as the rows are added, like for Nepal, the auto-numbering should go like NP-01, NP-02, NP-03, and so on.
Answers
-
You would need an auto-number column (called "Auto" in this example) that has no special formatting in it.
Then you would use this formula:
=[Location Shortcut]@row + "-" + IF(COUNTIFS([Location Shortcut]:[Location Shortcut], @cell = [Location Shortcut]@row, Auto:Auto, @cell<= Auto@row)< 10, "0", "") + COUNTIFS([Location Shortcut]:[Location Shortcut], @cell = [Location Shortcut]@row, Auto:Auto, @cell<= Auto@row)
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives