You need to sign in to do that
Don't have an account?
Bivolaru Ovidiu
Formula field to extract first 3 words
Hi,
I'm trying to extract the first 3 words from a TEXT field that can have one word or more than 3 words. Is there a way to achieve this using LEFT, RIGHT, TRIM functions ? Thank you!
I'm trying to extract the first 3 words from a TEXT field that can have one word or more than 3 words. Is there a way to achieve this using LEFT, RIGHT, TRIM functions ? Thank you!
Alain
All Answers
I like to resolve solve some tricky puzzles like that and the formulas of Salesforce without the '"split" function impose ridiculous circumventions.
I wrote the next formula for your puzzle:
If there is one word, the result is one word.
If there are two words, the result is two words.
If there are three words or more, the result is three words.
A good puzzle for developer.
Best regards
Alain
Alain
You can use the MID() function.
Returns character from the middle of a text string, given a starting position and length
Its worked for me..I created same scenario and got the Substring as a "Name"
MID( YourfieldNameHere , 16, 5)
Syntax :
MID(text, start_num, num_chars)
Thanks,
Saravanan Sivlingam.