Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TRIM Function 1

Status
Not open for further replies.

mrshardee2

Technical User
May 24, 2004
29
US
I have the following field that I am pulling into a report (Crystal 8.5):

/O=srmc/OU=SRMCNTNET/cn=Recipients/cn=Hunt36

I want to trim the field to only show what is after the 4th "=" sign. Seems like it should be fairly straightforward.

Any help would be appreciated.

Thanks!
Amber [peace]
 
Try:

mid({table.field},instrrev({table.field},"=")+1)

-LB
 
Will there always be 4 "=" signs in the field? Do you always want the 4th one or the last one?

An alternative to lbass's solution would be to use the split function. Create the following as a formula:

split({table.field},"=")[5]

~Brian
 
There should always be four "=" signs. lbass, your suggestion worked! Thanks!

Thanks bdreed35, too!

Amber [peace]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top