0

My output in formula field is : [ ref:_5540058J._578sdie5:ref ]

My expected output is :

ref:_5540058J._578sdie5:ref

I tried Trim with Left and Right but it is not giving expected result

2
  • when you tried trim what did you get. Commented Sep 28, 2016 at 10:17
  • I got it by using Mid and length functions -> MID( field__c , 2, LEN(field__c) -2 )
    – Prince
    Commented Sep 28, 2016 at 10:25

2 Answers 2

1

Following function will also work

TRIM(SUBSTITUTE(SUBSTITUTE(field__c,'[',''),']',''))
1

Try below function

TRIM(
    LEFT(
        TRIM(
            RIGHT(field__c,  (LEN(field__c) - 1) ) 
        ),
        (LEN(field__c) - 3)
    )
)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .