Excel formulas to extract information

I need two excel formulas. I need a formula for column B that will give me what I have in column A without the last two digits. The next formula in column C will give me the last to digits from column A. Can you provide this formulas?  

Column A                                          Column B                                    Column C

Have                                               Want 1                                            Want 2
                        
Ukraine UP                                       Ukraine                                    UP
United Arab Emirates AE               United Arab Emirates            AE
ConernestoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

RayData AnalystCommented:
use these formulas
in column b1...                  =left(a1, len(a1)-2)
ijn column c1...                  = right(a1, 2)
0
ConernestoAuthor Commented:
I am not getting the right result using the right formula. The left formula works fine.
0
ConernestoAuthor Commented:
I changed the right formula from = right(a1, 2)  to = right(a1, 3)  and I am now getting the correct result. Thank you.
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
That means you have some trailing spaces in the end. To deal with them you may try the following formulas...

=LEFT(TRIM(A1),LEN(TRIM(A1))-2)

Open in new window

=RIGHT(TRIM(A1),2)

Open in new window

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
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
Microsoft Office

From novice to tech pro — start learning today.