Solved

FORMULA TO SEPARATE DATA

Posted on 2013-06-20
6
330 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

18 Experts available now in Live!

Get 1:1 Help Now