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
- 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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!