Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add trailing spaces to value

We need to add trailing spaces to values where the len() is less than 18.  Is this possible.

IF len([Profile Identifier]) < 18 

THEN

     add 18  - len(len([Profile Identifier])  SPACES to the end of the text([Profile Identifier])

As [Profile Identifier]

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this,

IF(len([Profile Identifier]) < 18 , [Profile Identifier]&Repeat(' ',18-len([Profile Identifier])),[Profile Identifier])

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Try like this,

IF(len([Profile Identifier]) < 18 , [Profile Identifier]&Repeat(' ',18-len([Profile Identifier])),[Profile Identifier])

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thank you!  that was perfect!!!