Hi all
Looking to please understand how I can assign a unique 5 digit project code for each project that we onboard.
It should be based on a string (eg company name), and if unique id already used, drop off last digit and replace with number chronologically. Where string is less than 5 digits then add number starting with 0 or 00 etc to fill up string.
Eg, first project is ConstructionTech gets assigned 'const' and second project BuildCo gets 'build', third project Core gets 'core0' If we had Buildalot as a project it should be assigned 'buil1' as it cannot be assigned 'build' as already used,and if we had another project from core it would be 'core1'. When we exhaust these past buil9 it should go to bui01 bui02. This would cater to over 100 variations which would be plenty for the distant future but if it could handle a move to 6 digit code like bui000 that would be a bonus (we would always want 3 letters).
These shortened codes will be used for complex file management where full company or project names are not feasible. Happy for adjustments to the logic if any thoughts on how to better this concept. We don't want just numbers (like order reference) as some name familiarity is very useful.
So far I have managed to create the desired 'should-be' code in column B, however what's missing is the validation to verify if the code already exists and edit accordingly which is well beyond my capability unfortunately!
Thanks so much
Bookmarks