Note: The other languages of the website are Google-translated. Back to English

How to quickly generate random password in Excel?

Sometimes, we may want to create random passwords to protect some important thing. But do you have any tricks to quickly generate random password in Excel? Here, I have some methods that can handle it in Excel worksheet.

Generate random password with formula

Generate random password with Insert Random Datagood idea3

Generate random password with formula

Here I introduce three formulas to generate a different random password for you.

Alphanumeric random password

Select the cell you want to place the random password, type this formula =CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99), and press Enter key. Then you will get a string with 4 digits, the first two are alpha characters, and the last two are numbers.
doc random password 1

Tip: In the formula, CHAR(RANDBETWEEN(65,90)) can get one alpha character, RANDBETWEEN(10,99) can get a two-digit number, you can change the formula combination to your need. For instance, 6 digit alphanumeric password, use this formula =CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(100,999)&CHAR(RANDBETWEEN(65,90)).
doc random password 2

Alpha character random password

Select a cell to type this formula =CHAR(RANDBETWEEN(65,90)), then drag fill handle to right or down to fill the cells you need, for instance, fill other three cells if you need 4-digit alpha character. See screenshot:
doc random password 3

Numeric character random password

Select a cell to type this formula =RANDBETWEEN(100000,999999),and press Enter key. A 6-digit number string has been displayed.
doc random password 4

Note: With above formulas to get the random password, the password will be changed while refreshing the sheet each time.

Generate random password with Insert Random Data

If you want to keep the random password no change, you can apply Kutools for Excel’s Insert Random Data utility, which can insert any random data as you need.

Kutools for Excel, with more than
 handy functions, makes your jobs more easier. 

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.

Quickly Sort or select cells/Rows/Columns randomly from a selection in Excel

Kutools for Excel's Sort Range Randomly can quickly sort or select data randomly by cells or columns or rows. Click for full-featured
days free trial!
doc sort randomly
doc select randomly
 Kutools for Excel: with more than
handy Excel add-ins, free to try with no limitation in

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

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!
officetab bottom
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL