#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RUSS
 
Posts: n/a
Default Random Passwords

I am in Law Enf and our computer system is set up to require new, never
before used, passwords for every user every 90 days.

I have been attempting to generate random passwords in excel using this:
=CHAR(RANDBETWEEN(48,122))
It works fine except that it also creates passwords with characters other
than numbers and upper/lower case letters.

Can someone tell me how to generate random passwords resulting in only the
characters mentioned?

Thanks in advance... Russ


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Random Passwords

Hi!

One way:

List all the allowed chars in column A starting in A1. You could do this
using a formula if you want but it's not much faster than just manually
typing them in:

A1 = A
A2 = B
...
A26 = Z
A27 = 0
...
A36 = 9
A37 = a
...
A62 = z

In B1 enter this formula and copy down to B62:

=RAND()

Now, depending on how many chars you need for the pword, enter a formula
like this in, say, D1: (using a 5 char pword)

=A1&A2&A3&A4&A5

Now, select both columns A and B and do a sort on column B.

Biff

"RUSS" wrote in message
...
I am in Law Enf and our computer system is set up to require new, never
before used, passwords for every user every 90 days.

I have been attempting to generate random passwords in excel using this:
=CHAR(RANDBETWEEN(48,122))
It works fine except that it also creates passwords with characters other
than numbers and upper/lower case letters.

Can someone tell me how to generate random passwords resulting in only the
characters mentioned?

Thanks in advance... Russ




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Random Passwords

Biff wrote...
One way:

List all the allowed chars in column A starting in A1. You could do this
using a formula if you want but it's not much faster than just manually
typing them in:

....
In B1 enter this formula and copy down to B62:

=RAND()

Now, depending on how many chars you need for the pword, enter a formula
like this in, say, D1: (using a 5 char pword)

=A1&A2&A3&A4&A5

Now, select both columns A and B and do a sort on column B.

....

This is a fine example of something that can be done easily using
scripting languages and not as easily using spreadsheets. But, WTH,
another alternative.

Define RPWC referring to

=MID("ABCDEFGHIJKLMNOPQRSTUVWXYZzbcdefghijklmnopqr stuvwxyz0123456789",
1+INT(62*RAND*()),1)

Then use formulas like

=RPWC&RPWC&RPWC&RPWC&RPWC

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Random Passwords

I like this, saves having to sort repeatedly.

To generate a new pword, just press F9.

A couple of minor typos:

No lowercase "A".

WXYZzbcde

1+INT(62*RAND*()),1)

Should be:

1+INT(62*RAND()),1)

Biff

"Harlan Grove" wrote in message
ups.com...
Biff wrote...
One way:

List all the allowed chars in column A starting in A1. You could do this
using a formula if you want but it's not much faster than just manually
typing them in:

...
In B1 enter this formula and copy down to B62:

=RAND()

Now, depending on how many chars you need for the pword, enter a formula
like this in, say, D1: (using a 5 char pword)

=A1&A2&A3&A4&A5

Now, select both columns A and B and do a sort on column B.

...

This is a fine example of something that can be done easily using
scripting languages and not as easily using spreadsheets. But, WTH,
another alternative.

Define RPWC referring to

=MID("ABCDEFGHIJKLMNOPQRSTUVWXYZzbcdefghijklmnopqr stuvwxyz0123456789",
1+INT(62*RAND*()),1)

Then use formulas like

=RPWC&RPWC&RPWC&RPWC&RPWC



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Random Passwords

You could setup a table A1:B62. In column A, enter the numbers 1 through 62.
In column B enter your possible values 0 through 9, a through z, and A
through Z.

Then use VLOOKUP to get your password:

=VLOOKUP(RANDBETWEEN(1,62),$A$1:$B$62,2,FALSE)

HTH,
Elkar


"RUSS" wrote:

I am in Law Enf and our computer system is set up to require new, never
before used, passwords for every user every 90 days.

I have been attempting to generate random passwords in excel using this:
=CHAR(RANDBETWEEN(48,122))
It works fine except that it also creates passwords with characters other
than numbers and upper/lower case letters.

Can someone tell me how to generate random passwords resulting in only the
characters mentioned?

Thanks in advance... Russ





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 Sampling Andrea Excel Discussion (Misc queries) 2 November 11th 05 09:52 AM
Generate random numberes using reference to the other cell. ramana Excel Worksheet Functions 7 October 31st 05 07:09 AM
VBA "Rnd" Function: Truly Random? TheRobsterUK Excel Discussion (Misc queries) 2 September 27th 05 04:50 AM
Non-random numbers generated by excel's data analysis random gener Allie Excel Worksheet Functions 10 September 17th 05 06:19 AM


All times are GMT +1. The time now is 04:06 AM.

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

About Us

"It's about Microsoft Excel"