
Currently what I could come up with is below but it only works well if the address field value meets the else condition.
IF(ISNUMBER(TRIM(RIGHT(TREES__Address__c, 6))), LEFT(RIGHT(TRIM(TREES__Address__c), 50),33), LEFT(RIGHT(TRIM(TREES__Address__c), 25), 25))
Any urgent help will be highly appreciated.
6 réponses
Since this question isnt marked resolved, I ll give my shot too.
Dan's solution is pretty close but try the below syntax in your formula field..
SUBSTITUTE(LEFT(TREES__Address__c,FIND(",",TREES__Address__c)),",","")
Hope this helps.