How to select only certain characters

I'm trying to select specific groups of numbers from the ID's below.  As you can see there are two version of this ID.  The first section only has one characters, second section has 2 characters and last section has 2 characters for company1 and 3 for company2.  I need to split them all up into there own formula so I can move them around on a label without the dashes.  I know how to get the first number by using this.   Left ({HDRXXXXDEF.BIN_ID},1)  I'm not sure how to get the second and third groups.  

company 1 version:
A-00-01
company 2 version:
A-00-02a
LVL 1
abarefootAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
Split({HDRXXXXDEF.BIN_ID},"-")[1] for the 1st part
Split({HDRXXXXDEF.BIN_ID},"-")[2] for the 2nd
Split({HDRXXXXDEF.BIN_ID},"-")[3] for the 3rd
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
That is probably the easiest way

You can also use MID

Mid({HDRXXXXDEF.BIN_ID},3,2)

Mid({HDRXXXXDEF.BIN_ID},6)

mlmcc
0
abarefootAuthor Commented:
Thanks that works perfect
0
abarefootAuthor Commented:
For the 3rd group I actually need to pull out the 3rd character.  Example below

A-00-01a

A
00
01
a
0
abarefootAuthor Commented:
never mind I figured it out

Mid({HDRXXXXDEF.BIN_ID},8)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.