Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

FORMULA TO SEPARATE DATA

Posted on 2013-06-20
6
Medium Priority
?
346 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 101

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
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 
LVL 35

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 101

Accepted Solution

by:
mlmcc earned 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

783 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