Skip to main content

How to quickly generate random password in Excel?

Author: Sun Last Modified: 2024-07-08

To generate a random password in Excel, you can use a combination of Excel functions to ensure the password is both secure and unique. Below, I'll guide you step-by-step on how to do this, including creating passwords that meet typical security requirements such as including uppercase and lowercase letters, numbers, and special characters.


Generate random passwords with formulas

Normally, if you need to generate an 8-character random password in Excel which including letters, numbers and special characters, please apply the following formula:

=CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(97,122)) & CHAR(RANDBETWEEN(48,57)) & CHAR(RANDBETWEEN(33,47)) &
CHAR(RANDBETWEEN(65,90)) & CHAR(RANDBETWEEN(97,122)) & CHAR(RANDBETWEEN(48,57)) & CHAR(RANDBETWEEN(58,64))

Then, press Enter key to get an 8-character random password (2 uppercase letters, 2 lowercase letters, 2 numbers and 2 special characters), and then drag the fill handle down to generate multiple passwords as you need. See screenshot:

Formula Explanation:
  • CHAR(RANDBETWEEN(65,90)) generates a random uppercase letter;
  • CHAR(RANDBETWEEN(97,122)) generates a random lowercase letter;
  • CHAR(RANDBETWEEN(48,57)) generates a random number between 0 and 9;
  • CHAR(RANDBETWEEN(33,47)), CHAR(RANDBETWEEN(58,64)) generate random special characters, (such as: @,:,!...)

Notes: Improvements and Customization

  • Length: Adjust the length by adding or removing concatenated parts.
  • Character Set: Modify the RANDBETWEEN() functions to include different or additional special characters.
  • Randomness: Each time the sheet recalculates, the password will change. To prevent this, copy the generated password and paste it as values elsewhere in your sheet.
Tips: Numeric character random password

If you just need to generate an 8-digit number password, here, you can use a simple formula:

=RANDBETWEEN(10000000,99999999)

Generate random passwords with Kutools for Excel

Tired of the same old weak passwords? Step up your security game with Kutools for Excel's robust Insert Random Data feature! Whether you're safeguarding personal data or protecting corporate information, Kutools makes it effortlessly easy to create strong, unique passwords directly within your Excel workspace.

With just a few clicks, you can generate complex passwords that combine uppercase, lowercase, numbers, and special characters to meet the highest security standards. Choose your desired length and complexity, and let Kutools do the rest, ensuring you get a different, highly secure password every time.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Read More...         Free trial...

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Select a range you want to insert random data, click Kutools > Insert > Insert Random Data.
doc random password 5

2. In the Insert Random Data dialog, under String tab, check the character types you want to use in the password, and check String length and type the length number you want into the textbox. See screenshot:
doc random password 6

3. Click Ok, and the random passwords have been inserted without changing while refresh.
doc random password 7

With Insert Random Data utility, you also can insert random whole numbers, random dates and time, random custom list.

In summary, whether you choose to manually craft your passwords using Excel functions or opt for the enhanced capabilities of Kutools for Excel, both methods provide reliable and secure ways to generate random passwords that can protect your sensitive information from unauthorized access. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials. Please click here to access them.


Demo: Generate random passwords

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
POTŘEBUJI HESLO ABYCH ZÍSKAL Z PATKY UČET
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations