Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pascale
 
Posts: n/a
Default 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

  #2   Report Post  
olasa
 
Posts: n/a
Default


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

  #3   Report Post  
N Harkawat
 
Posts: n/a
Default

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



  #4   Report Post  
olasa
 
Posts: n/a
Default


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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
random number generator Jose Luis Excel Discussion (Misc queries) 1 June 14th 05 09:41 PM
Excel 2003 random number generator JJ Excel Discussion (Misc queries) 1 May 4th 05 01:02 PM
How do you create a random number generator in Excel? gmrobillard Excel Worksheet Functions 5 March 23rd 05 09:10 AM
Random number generator Philippe L. Balmanno Excel Worksheet Functions 4 December 17th 04 07:42 AM


All times are GMT +1. The time now is 12:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"