on 08-20-2015 10:36 PM
Hello everyone,
I have a formula that I am trying to convert to crystal syntax. In excel formula works. Basically, it outputs the string between two hyphen characters.
XXXXX-WHITE-1 >>>>>>> formula >>>>>>>> WHITE
Here is the formula that I use in excel:
=MID(A1,FIND("-",A1)+1,(FIND("-",A1,FIND("-",A1)+1))-FIND("-",A1)-1)
How can I convert this formula into something that crystal reports understand?
P.S. A1 is going to be ItemCode.
Any help is appreciated!
Replace the "FIND" with "InStr" and switch the parameters around. So, it might look like this:
MID({MyField},InStr({MyField},"-")+1,(InStr({MyField},"-",InStr({MyField},"-")+1))-InStr({MyField},"-")-1)
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.