Solved

FORMULA TO SEPARATE DATA

Posted on 2013-06-20
6
331 Views
Last Modified: 2013-06-21
Hi All,

I have a column with data :

'Lembur@171.00 Jam x@'

I want to separate it into 2 formula :

1. fmlDesc = 'Lembur'
2. fmlQty =  '171.00 Jam x'

How could I do it ?

Thank you.
0
Comment
Question by:emi_sastra
  • 3
  • 2
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39264959
Try this

fmlDesc
Split({YourField},"@")[1]

fmlQty
Split({YourField},"@")[2]

mlmcc
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39264967
Hi  mlmcc,

Let me try first.

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 39265002
Hi  mlmcc,

Some the data has no @.

What should I do  ?

Thank you.
0
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.

 
LVL 34

Expert Comment

by:James0628
ID: 39265360
What does it mean when there is no "@"?

 Do you not want to use that string at all?
   --or--
 Do you want to use the whole string as one thing or the other (fmlDesc or fmlQty)?  Which one?  And then just leave the other part blank?
   --or--
 Do you still want to split the string, but using some other character (not "@") as the delimiter?

 James
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39265702
If there are no @ there will only be 1 string

You can try this

fmlDesc
Split({YourField},"@")[1]

fmlQty
Local StringVar Array arrStrings;

arrStrings := Split({YourField},"@");
If UBound(arrStrings) >= 2 then
    arrStrings[2]
Else
    "No fmlQty"

mlmcc
0
 
LVL 1

Author Closing Comment

by:emi_sastra
ID: 39265737
Great.

Thank you very much for your help.
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

Suggested Solutions

Title # Comments Views Activity
Execute a crystal report from vb2010 3 39
Query Builder on BOXIR2 7 54
Next Full Week 4 76
Crystal Report Filter Question 6 58
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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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