INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Crystal 2011

Crystal 2011

(OP)
I have a field that contains notes:

I want to be able to pull a specified number of characters that come after a phrase Field example: 'Enter your 6 digit store number here: 123456, In home date is 12/20/2018)

This field will sometimes not have the enter your 6 digit store number here, so I want a formula that will display only the 123456 for fields that include the 'enter your 6 digit store number here:' and blank for ones that do no include this phrase.



RE: Crystal 2011

If {table.note} startswith “Enter your 6 digit store number here:” then
Mid({table.note},instring({table.note},”:”)+2) else
{table.note} //or “” if you don’t want a record to appear at all if it doesn’t start with the phrase.

-LB

RE: Crystal 2011

(OP)
LB,

I am getting closer but I am still getting all of the characters after the 6 digit store number. So I am getting 123456, In home date is 12/20/2018 but I only want 123456.

So I only want the next 6 characters after the : +2 .

Thank you for all the help you have given me over the years!!!

RE: Crystal 2011

Mid({table.note},instring({table.note},”:”)+2,instring({table.note},”:”)+7)

There are other ways of doing this also, e.g., using extractstring, but this should work. I didn’t realize you ONLY wanted the store number.

-LB

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close