Solved

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

Posted on 2009-05-19
3
246 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…

737 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