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
- 64.1K Get Help
- 412 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!