crystal reports - need text after "-" and then 2 characters

kelsanit
kelsanit used Ask the Experts™
on
Have a text field  010200-12dade

I need to create a formula that will only give me the two characters after the dash. In this example it would be 12
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
Commented:
Try this.  It assumes there will always be a dash

Left(Split({YourField},"-")[2],2)

mlmcc

Author

Commented:
worked perfect!

Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial