Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are you sure your numbers are Base 36? I ask because I kind of suspect your
"digits" are these... 0, 1, 2, ...., 9, A, B, ..., X, Y, Z and if that is the case, then you actually have Base 37 numbers and not Base 36. For Base36 numbers, the letter Z would not be in your set of digits... Z would be the 37th digit because 0 is the first digit. Assuming you really have Base36 numbers (no Z), then this function should do what you want... Function ConvertBase36ToBase10(Base36Number As String) As Long Dim X As Long, Total As Long, Digit As String For X = Len(Base36Number) To 1 Step -1 Digit = UCase(Mid(Base36Number, X, 1)) ConvertBase36ToBase10 = ConvertBase36ToBase10 + IIf(IsNumeric(Digit), _ Digit, Asc(Digit) - 54) * 36 ^ (Len(Base36Number) - X) Next End Function If Z is in your set (meaning you have Base37 numbers), then simply change all the 36's to 37's. -- Rick (MVP - Excel) "David" wrote in message ... I have been given a spreadsheet with transaction numbers converted into base 36- alpha numeric - I need it in base 10- number format- I have approx 30,000 of these!- is ther a formula to convert from 1 to another? -- Thanks for your help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formulat to convert base 32 to decimal? | Excel Worksheet Functions | |||
Option Base 1; how to also make auto-arrays set to base 1? | Excel Programming | |||
convert a nine digit number to base 32 | Excel Worksheet Functions | |||
how do I convert numbers to a different base in Excel? | Excel Worksheet Functions | |||
Convert Works 6.0 data base to Excel? | New Users to Excel |