Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
QFanatic
Creator
Creator

Replace values in a variable length field

hi all

 

I have a variable length field, lets call it AcNum, I want to ONLY keep the first 4 characters of the string and replace the rest with '*'

So...

abcd789 would become abcd*** and

asdfghjk will become asdf****

Thank you

Labels (1)
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

What about formula:

=Left('abcdefgh', 4) & Repeat('*', Len('abcdefgh') - 4)

 

The result is as following:

Screenshot_1.png

View solution in original post

1 Reply
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

What about formula:

=Left('abcdefgh', 4) & Repeat('*', Len('abcdefgh') - 4)

 

The result is as following:

Screenshot_1.png