function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RemediosRemedios 

Formula to trim account name

My users would like to be able to use a mailmerge field that is picking up the clean company name - i.e. without Inc, Co., etc... Is there a way to trim symbols after "." or "," or any other better ideas?

 

Thanks!

Navatar_DbSupNavatar_DbSup

Hi,

 

You can try formula which trim the company name abc.com as abc.

 

IF( CONTAINS(Name , '.'), LEFT(Name,FIND(".", Name) -1) ,Name)

 

Also if you need to make changes to Account name by using special character then you can use

SUBSTITUTE(text, old_text, new_text)
Substitutes new_text for old_text in a text string. Use SUBSTITUTE when you want to replace specific text in a text string.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.