[How To] Generate Alpha Numeric Values in Excel 2010

stnicholas81

New Member
Joined
Jul 20, 2011
Messages
1
Hi Guys,

I need some advice on generating random (no repeat) alpha numeric numbers in Excel for promotion code usage.

I have done this for numerals before but not for alpha numerals. I need 24,000 of these values.

Requirement:
- 8 values consisting of
- 2 alpha
- 6 numerals
- any sequence

For example ab123456

Would greatly appreciate any form of advice.

Cheers,
Nic
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try

=CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(97,122))&TEXT(RANDBETWEEN(1,100000),"000000")
 
Upvote 0
Hi Nic and welcome to the Board
In column "A" starting at A1, put the numbers 1 to 9.
Directly after that put the letters of the alphabet from A to Z
Then in a cell somewhere else place the formula below
Code:
=INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))&INDEX($A$1:$A$36,RANDBETWEEN(1,36))
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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