How to find offset value based on a letter

Using Excel 2003... I have an order number (Ex 36146) and I've setup a "key" on a spread sheet to convert a number into a letter.  So the key is:

1 = A
2 = B
3= C
.....
0 = J

I would like to have excel convert 36146 to letters and I've done that with 6 cells using offset.

Two things I would like to change:

1. Instead of having 6 cells a single cell with the order number 36146 and have excel convert to letters (CFADF)

2. Reverse the result, in that if a user enters CFADF Excel will find the order number (36146).

Please  see attached file.... is this possible?

Thank you.
Order-To-Alpha.xls
thandelAsked:
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.

ShumsDistinguished Expert - 2017Commented:
Hi Thandel.

Try below for Numeric to Alpha in D3 and drag across:
=IFERROR(INDEX($B$2:$B$11,MATCH(D$2,$A$2:$A$11,0)),"")

Open in new window

And for Alpha to Numeric try below in D8 and drag across:
=IFERROR(INDEX($A$2:$A$11,MATCH(D$7,$B$2:$B$11,0)),"")

Open in new window

Check attached...
Order-To-Alpha_v1.xlsx
0
thandelAuthor Commented:
Thanks but I am getting an error of #NAME? (I'm using Excel 2003)
0
ShumsDistinguished Expert - 2017Commented:
Sample you provided doesn't have error. Please upload the workbook, which has error
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

thandelAuthor Commented:
I'm getting the error when I implement your solution AND with your workbook.
0
Martin LissOlder than dirtCommented:
Using user defined functions you can make the conversions without a key. In the attached workbook, A2 contains the numeric to alpha conversion of A1, and B2 contains the alpha to numeric conversion of B1.
29065054.xlsm
1

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
thandelAuthor Commented:
Holly cow never knew of that function... so easy thanks!
0
Martin LissOlder than dirtCommented:
Holly cow never knew of that function
You never heard of them because I wrote them using VBA. Go to Visual Basic by pressing Alt+f11 and then in the "Project - VBAProject" window expand "Modules" and select  "Module1". You'll then see the two UDFs (User Defined Functions).

In any case you're welcome and I'm glad I was able to help.

If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange MVE 2015
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017
0
thandelAuthor Commented:
Yup was just noticing... but its so simple love it thanks!  Nice code.
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
Microsoft Applications

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.