Auto numbering based on values from an adjacent cell
Ahmet - newby
✭✭✭✭
Hi Community,
I have the below sheet:
The value in the "State Code" column should take the State Abbreviation and add the next number in the sequence of that particular State.
Anyone know what the formula would be to enable this?
Many thanks,
Ahmet
Answers
-
You will want to insert an Auto/number column (don't need any special formatting) then use this formula in a text/number column:
=States@row + "-" + IF(COUNTIFS(States:States, @cell = States@row, AutoNumber:AutoNumber, @cell <= AutoNumber@row) < 10, "00", IF(COUNTIFS(States:States, @cell = States@row, AutoNumber:AutoNumber, @cell <= AutoNumber@row) < 100, "0")) + COUNTIFS(States:States, @cell = States@row, AutoNumber:AutoNumber, @cell <= AutoNumber@row)
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives