Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default a tough question - calculating a number out of an alphanumeric code


Hi, I have been trying to figure this one out, but I have not been able
to.

I have an alphanumeric code - say BC983X8 - in a cell, and I need to
calculate an extra digit based on it. Each letter has a value (place
in alphabet+9). How can I do this?


--
usingexcel
------------------------------------------------------------------------
usingexcel's Profile: http://www.excelforum.com/member.php...o&userid=37043
View this thread: http://www.excelforum.com/showthread...hreadid=567955

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default a tough question - calculating a number out of an alphanumeric cod

So the value you would generate from your alpha code would be = 84 correct?
(B=11, C=12, X=33)? Are your codes always of the same length? Are the
letters always capitals?

You can get the proper number for each letter by using the formula
=CODE(A1)-55
this is assuming only one capital letter is in A1. I can't think of an easy
way to do this without a very complex formula or a macro or seperating all
digits and letters out using text to columns and then doing some
calculations.

"usingexcel" wrote:


Hi, I have been trying to figure this one out, but I have not been able
to.

I have an alphanumeric code - say BC983X8 - in a cell, and I need to
calculate an extra digit based on it. Each letter has a value (place
in alphabet+9). How can I do this?


--
usingexcel
------------------------------------------------------------------------
usingexcel's Profile: http://www.excelforum.com/member.php...o&userid=37043
View this thread: http://www.excelforum.com/showthread...hreadid=567955


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default a tough question - calculating a number out of an alphanumeric code


usingexcel Wrote:
Hi, I have been trying to figure this one out, but I have not been able
to.

I have an alphanumeric code - say BC983X8 - in a cell, and I need to
calculate an extra digit based on it. Each letter has a value (place
in alphabet+9). How can I do this?


There are other scripting tools that operates on the character of the
text like KixScript, etc. With Kix, this is only like 10 lines of codes
but this is not the proper forum for it.


--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile: http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=567955

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Arrays Take too long. VERY HARD QUESTION. my head hurts : / belly0fdesire Excel Worksheet Functions 1 August 6th 05 12:47 AM
Easy VB code question Anthony Excel Discussion (Misc queries) 2 July 8th 05 08:45 PM
syntax question - cell references in VB code needyourhelp New Users to Excel 1 March 2nd 05 08:52 PM
Calculating the number of Fridays in a month Greg Ward Excel Worksheet Functions 5 March 2nd 05 05:47 PM


All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"