?
Solved

Formula to search text including double quotation marks ("")

Posted on 2009-05-19
3
Medium Priority
?
250 Views
Last Modified: 2012-05-07
Gurus,

I have to search for a string of text in a field; the text includes quotation marks like this:

to "ABC"

So, the text includes the word to, a space, and then a value seperated by "".

I'm close but can't get it - can you help?

Thanks in advance!
0
Comment
Question by:SStroz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
James0628 earned 2000 total points
ID: 24428661
The short answer is, use ' (single-quotes) around the string in CR.  For example:

 'to "ABC"'   (that's a single-quote at the beginning and end)


 If you need something more specific, post your formula.

 James
0
 
LVL 7

Author Closing Comment

by:SStroz
ID: 31583354
This worked great!  So simple...yet when you don't know I wasted hours.  When will I learn to get to ee faster!

Thanks again!!!
0
 
LVL 35

Expert Comment

by:James0628
ID: 24483217
You're welcome.

 I know what you mean.  It doesn't matter how simple it is if you don't know it.  :-)

 CR makes this easy because it accepts both single and double-quotes as string delimiters.  You can even use both in the same formula, so if you needed a string that contained "'" (a single-quote inside double-quotes), you could use:

'"' + "'" + '"'    (single-double-single + double-single-double + single-double-single)

 (If you copy and paste that into something else, like the CR formula editor, or just something like Notepad, it's a lot easier to see.  The quotes all blend together in my browser)

 James
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question