Luigi802

Board Regular
Joined
Oct 16, 2014
Messages
80
So, I'm trying to create a random 15 digit password with certain criteria. At least 3 of the following; uppercase, lowercase, special characters, numbers. I also want to make each character unique, I have 2 formulas:

1. =CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))&CHAR(RANDBETWEEN(33,122))

This creates a random PW all unique, but does not stick to the criteria all the time


2. =CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(42,43))&CHAR(RANDBETWEEN(42,43))&CHAR(RANDBETWEEN(42,43))&RANDBETWEEN(100000,999999)

This 1 sticks to my criteria but creates repeat characters, and is ALWAYS formatted "Uppercase, Lowercase, Lowercase, Lowercase, Uppercase, Uppercase, Special Character, Special Character, Special Character, and then 6 numbers, or however I arrange the formula.

Basically if I could modify the 1st formula to always have at least 3 of each character, but not always in the same order with no repeats! I'm also open to VBA code; although, I am a noob at that!
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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