CHAR 97-122 mean a-z. what need wright that exel mean a-z or 0-9

tdtemo

New Member
Joined
Aug 21, 2011
Messages
6
I make two Letter Combination (a-z) in exel and CHAR 97-122 mean a-z:

To do it in the cells, put 97 in A1 and B1
In C1 put: =CHAR(A1)&CHAR(B1)

In A2 put =A1
In B2 put =B1+1
In C2 put =CHAR(A2)&CHAR(B2)

Fill down to row 26.

In A27 put =A1+1
In B27 put =B1

Fill down to row 676


Now I need make two leter kombinacion but where need was a-z or 0-9

for example:
A1 - 0a
A2 - 0b
......
A37 -00
A38 - 1a
....
A 1296 - 9z


how make it?


Sorry For Bad English...

Best Regards,
Tdtemo
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
thank you for answer.

I dont know how write now there

"=CHAR(A1)&CHAR(B1)"

please give me advice
 
Upvote 0
I don't really understand what you are trying to do. Maybe

=CHAR(RANDBETWEEN(48,57))&CHAR(RANDBETWEEN(97,122))
 
Upvote 0
to generate all 1296 permutations
in a1 down to a26 put a...z in a27 to a36 put 0 thro to 9
then in b1
=INDEX($A$1:$A$36,CEILING(ROW(A1)/36,1))&INDEX($A$1:$A$36,MOD(ROW(A36),36)+1) drag down to row 1296
oops this is a bit big but it stops at row39 just carry on dragging down

Excel Workbook
AB
1aaa
2bab
3cac
4dad
5eae
6faf
7gag
8hah
9iai
10jaj
11kak
12lal
13mam
14nan
15oao
16pap
17qaq
18rar
19sas
20tat
21uau
22vav
23waw
24xax
25yay
26zaz
270a0
281a1
292a2
303a3
314a4
325a5
336a6
347a7
358a8
369a9
37*ba
38*bb
39*bc
Sheet1
 
Last edited:
Upvote 0
I dont know English (((

I need letter and cipher 2 sumbol All combination.
understand?

Thank you very much for careful.
 
Upvote 0
Put this function in a standard module:

Code:
Public Function Bas2Bas(Number As String, Optional ByVal FromBase As Byte = 10, Optional ByVal ToBase As Byte = 16) As String
    Const BaseDigits As String = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    Dim MyResult As String
    Dim dRemainder As Double
    Dim MyPlace As Byte
    Dim MyDigit As Byte
    Dim dValue As Long
    On Error Resume Next
     
    Number = UCase(Number)
    If (ToBase < 2) Or (ToBase > 36) Then GoTo Done
     
    For MyPlace = 1 To Len(Number)
        For MyDigit = 0 To 36
            If MyDigit >= FromBase Then GoTo Done
            If Mid(BaseDigits, MyDigit + 1, 1) = Mid(Number, MyPlace, 1) Then Exit For
        Next
        dValue = dValue + MyDigit * FromBase ^ (Len(Number) - MyPlace)
    Next
     
    Do
        dRemainder = dValue - (ToBase * Int((dValue / ToBase)))
        MyResult = Mid(LCase(BaseDigits), dRemainder + 1, 1) & MyResult
        dValue = Int(dValue / ToBase)
    Loop While (dValue > 0)
Done:
    Bas2Bas = MyResult
End Function

Then in the spreadsheet:

In A1:
=RIGHT("0"&bas2bas(ROW(),10,36),2)

Copy down.
 
Upvote 0
martindwilson


exelent, thanks you Very very much!!!

please tell me how make If will 3 simbols?
it will 46,656 variant

HOTPEPPER

thank you

how Put this function in a standard module?

now me interestid make 3 simbols (46,656 variant)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top