Link to home
Start Free TrialLog in
Avatar of Conernesto
ConernestoFlag for United States of America

asked on

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
Avatar of Ray
Ray
Flag of United States of America image

use these formulas
in column b1...                  =left(a1, len(a1)-2)
ijn column c1...                  = right(a1, 2)
Avatar of Conernesto

ASKER

I am not getting the right result using the right formula. The left formula works fine.
I changed the right formula from = right(a1, 2)  to = right(a1, 3)  and I am now getting the correct result. Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial