Alpha2Int ( Alpha )
Rate this function: Average rating: 3.3 (7 votes) Discuss this Custom Function
JT Hughes, Queuedom
http://notapplicable.com
Converts Alpha string to its integral equivalent
Sample Input:
| Alpha2Int ( "ABC" ) |
|
Sample Output:
|
Description:
// SAMPLE CONVERSION FOR Alpha = "ABC"
// FIRST ITERATION
// Alpha = "ABC"
// Integer => Position ( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; "A" ; 0 ; 1 ) * 26 ^ ( 3 - 1 ) = 1 * 26 ^ 2 = 676
// SECOND ITERATION
// Alpha => "BC"
// Integer +=> Position ( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; "B" ; 0 ; 1 ) * 26 ^ ( 2 - 1 ) = 2 * 26 ^ 1 = 52
// THIRD ITERATION
// Alpha = "C"
// Integer +=> Position ( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; "C" ; 0 ; 1 ) * 26 ^ ( 1 - 1 ) = 3 * 26 ^ 0 = 3
// Integer = 676 + 52 + 3 = 731
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
GroupRelationInfo ( FileTarget ; TableTarget ; Result ) |
| |
(Tue, Mar 16, 5:57am) |
| 2. |
GeoBox(latitude;longitude; radius) |
| |
(Mon, Mar 15, 11:04am) |
| 3. |
MonthNameList ( start; number; short ) |
| |
(Sun, Mar 14, 11:45pm) |
| 4. |
matchListAB( ListA ; ListB; match_Value; match_operator ; getN ) |
| |
(Sun, Mar 14, 10:29pm) |
| 5. |
Bin2Hex ( binary ) |
| |
(Sat, Mar 13, 10:08pm) |
| 6. |
SlideView (text) |
| |
(Sat, Mar 13, 8:40pm) |
| 7. |
HashFNV1a64 ( text ; empty ) |
| |
(Sat, Mar 13, 6:23pm) |
| 8. |
HashFNV1a32 ( text ; empty ) |
| |
(Sat, Mar 13, 5:55pm) |
 |
|