Increasing number when meets same value autonumber, possible formula
Hi i badly need help! Is there any possible formula to achieve the output in SERIAL NUMBER column? By the way it is manually encoded. Thank you
Best Answer
-
Hello @Cybsss
To be able to achieve the desired SN format:
- Add an Auto-Number Column (System Column): Create an Auto-Number Column (RowID). This column will automatically generate a unique number for each row, which we’ll use in calculations.
- Add Helper Columns:
Helper Count: This column will provide a sequential count for each Sub Category Code as it appears in the rows. Use the following formula:
Helper Zeros: To achieve a three-digit format (e.g., "001"), add a column named Helper Zeros with the following formula. This formula will add leading zeros based on the Helper Count value:
- Generate the Serial Number: In the Serial Number column, combine Helper Zeros and Helper Count to create a formatted serial number:
I hope this solution works for you.🙂
Che
Answers
-
Hello @Cybsss
To be able to achieve the desired SN format:
- Add an Auto-Number Column (System Column): Create an Auto-Number Column (RowID). This column will automatically generate a unique number for each row, which we’ll use in calculations.
- Add Helper Columns:
Helper Count: This column will provide a sequential count for each Sub Category Code as it appears in the rows. Use the following formula:
Helper Zeros: To achieve a three-digit format (e.g., "001"), add a column named Helper Zeros with the following formula. This formula will add leading zeros based on the Helper Count value:
- Generate the Serial Number: In the Serial Number column, combine Helper Zeros and Helper Count to create a formatted serial number:
I hope this solution works for you.🙂
Che
-
Hi @che.rabajante thanks a lot, it worked! :D
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 454 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!