Jun 11, 2018 08:58 PM
I have a pre-existing order number in the format of “LS003456” that I would like to auto-generate. I’m using a second field with autonumber and then a formula like this:
CONCATENATE(“LS00”, AutoID)
which gives a result of:
LS00185
LS00186
LS00187
Is it possible to modify the formula so that there are always 6 digits after the “LS” and any leading zeros are maintained?
My end goal is to have a sequence like:
LS000001
LS000002
LS000003
…
LS999999
Jun 11, 2018 10:33 PM
Use this formula:
'LS'&
REPT(
'0',
6-LEN(
AutoID&''
)
)&
AutoID
Sep 05, 2020 09:06 AM
Tnx! This solved my problem as well. :slightly_smiling_face:
Nov 12, 2022 10:16 AM
I just found this answer that also works so well and I find it more elegant
RIGHT(“000”&{Revision Level},3)