Solved

Crystal Formula Help - ID for text field

Posted on 2013-12-05
3
302 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
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 video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

10 Experts available now in Live!

Get 1:1 Help Now