Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Searching a String effectively Post Reply Post New Topic
Author Message
Chrisp85
Newbie
Newbie


Joined: 12 Sep 2014
Online Status: Offline
Posts: 5
Quote Chrisp85 Replybullet Topic: Searching a String effectively
    Posted: 29 Jan 2015 at 6:55am
Hello,

I am having trouble grasping how to setup a formula to pull the below information out of the string.

%200340$1$0$1$10%

How would I write a formula to extract only the numbers between the $% on the right hand side. Example above is 10, however could go into 3 digits.

Thank you

IP IP Logged
Chrisp85
Newbie
Newbie


Joined: 12 Sep 2014
Online Status: Offline
Posts: 5
Quote Chrisp85 Replybullet Posted: 29 Jan 2015 at 6:59am
Another note: the numbers before it are dynamic as well. Could be
%200340-1$1$0$10$100%. This may complicate the formula.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Jan 2015 at 3:51am
maybe this? Note it is strill a string. YOu would need to use tonumber to make it numeric
 
replace(Mid({table.field},InStrRev({table.field},"$")+1),"%","")
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.