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
Solved

Crystal Formula Help - ID for text field

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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