1

Is there a way to pad in a calculated field to get a final result length to be standard?

lets say I want my calculated field result to be 8 characters long beginning with MTX then enough zeros to pad and then the ID of the record.

So if the record ID is 23 then the result would be MTX00023

1 Answer 1

3

Use the TEXT function. Set this as the formula for the calculated field: ="MTX"&TEXT(ID,"00000").

Important note about using the ID field in a calculated field: When the item is created, its ID is not yet available. After creating an item, you will need to edit it so that the calculated field is updated with the proper ID.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.