Solved

Crystal Formula Help - ID for text field

Posted on 2013-12-05
3
303 Views
Last Modified: 2014-01-10
Need help with the following:

Create formula that will provide an ID to each value based on the following:

Fields:
Product code (example  091000)  Field is always 6 character long
product pack code (example 1:  12BSL) (example 2: 12)  (Example 3: 41)

if product pack code is just 2 characters long then "NationalBrand" else
if product pack code contains "BSL" then "NationalBrand" else "PrivateLabel"
0
Comment
Question by:kelsanit
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39700180
Try this

If (Length({YourField}) = 2 or Instr({YourField},'BSSL') > 0 then
    "National Brand"
Else
    "Private Label"

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now