ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Random Number Generator (https://www.excelbanter.com/excel-worksheet-functions/34352-random-number-generator.html)

Pascale

Random Number Generator
 

Is it possible to randomly generate an 8 alphanumeric string rather than
just numeric string. Numbers and alpha order should also be random,
purpose: trying to simulate password entries for test data


--
Pascale
------------------------------------------------------------------------
Pascale's Profile: http://www.excelforum.com/member.php...o&userid=12546
View this thread: http://www.excelforum.com/showthread...hreadid=385434


olasa


Use this formula
http://www.tushar-mehta.com/excel/ti..._alphanum.html
...8 times (8 rows) and then concatenate all the rows to one
Alphanumeric string.
=A1&A2&A3&A4&A5&A6&A7&A8

HTH
Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=385434


N Harkawat

Type 0 thru 9 and A thru Z in cells A1 thru A43

Next on any cell type
=INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A $43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEE N(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))&INDEX ($A$1:$A$43,RANDBETWEEN(1,43))&INDEX($A$1:$A$43,RA NDBETWEEN(1,43))&INDEX($A$1:$A$43,RANDBETWEEN(1,43 ))&INDEX($A$1:$A$43,RANDBETWEEN(1,43))

This is your 8 digit random password

For Randbetween you will need Analysis tool pak addin

"Pascale" wrote in
message ...

Is it possible to randomly generate an 8 alphanumeric string rather than
just numeric string. Numbers and alpha order should also be random,
purpose: trying to simulate password entries for test data


--
Pascale
------------------------------------------------------------------------
Pascale's Profile:
http://www.excelforum.com/member.php...o&userid=12546
View this thread: http://www.excelforum.com/showthread...hreadid=385434




olasa


Here is another way.

Put this in A1 (or give it a Name):
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn opqrstuvwxyz

Then copy this to A2:
=MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+IN T(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($ A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)&MID($ A$1,1+INT(RAND()*LEN($A$1)),1)&MID($A$1,1+INT(RAND ()*LEN($A$1)),1)&MID($A$1,1+INT(RAND()*LEN($A$1)), 1)&MID($A$1,1+INT(RAND()*LEN($A$1)),1)

Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=385434



All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com