Crystal Reports Formula

5 pts.
Tags:
Crystal Reports
I am trying to seperate data in a field. For example the data in my field looks like this: Coldwell Banker Residential - IL - Waukegan...I need to get rid of everything before Waukegan. In other words I want it to display only the town. I can do it with the mid function, however, there is one name that looks like this: Coldwell Banker - NRT, so my "mid" formula doesn't apply. Can you help me out?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Will the name of the town always follow a – two letter abbreviation and another – ? If that is the case you could just look for the second dash in the field and pull everything after that.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    The first thing you need to define is what will be the criteria to decide where the town starts. Also, this could be done in the SQL query, but how to do it will depend on the database, which you did not specify. Please provide more details.
    69,510 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following