I have a workflow where I need to convert a 2 or 3 digit string (or number) to a 5 digit string (or number). Ex: change 102 to be 00102. In Excel, I would use the formula text(ref cell,"00000") but can't find anything similar in formulas or by trying to convert to a string.
Solved! Go to Solution.
Try this formula:
PadLeft(tostring([Field1]),5,"0")
I found the answer in this post by @patrick_digan
See attached.
Hmm I'm still having issues. I already have the field type as a String. With the "" around the 0, I'm now getting the below error
The field "" is not contained in the record. (Expression #1)
formula is padleft([RecID],5,"0")
Any thoughts?
Try giving a name to your Output Column in your Formula tool.
Where it says "Select Column", drop down to choose a column to replace or click "+ Add Column" and type a description.
Oh DUHHH! Thank you!
User | Count |
---|---|
17 | |
15 | |
15 | |
8 | |
6 |