How to quickly generate random password in Excel? (2024)

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 Data

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.
How to quickly generate random password in Excel? (2)

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)).
How to quickly generate random password in Excel? (3)

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:
How to quickly generate random password in Excel? (4)

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.
How to quickly generate random password in Excel? (5)

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 300handy functions, makes your jobs more easier.

Free Downloadfree full-featured in 30-day

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.
How to quickly generate random password in Excel? (6)

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:
How to quickly generate random password in Excel? (7)

3. Click Ok, and the random passwords have been inserted without changing while refresh.
How to quickly generate random password in Excel? (8)

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

Demo

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 30 days free trial!
How to quickly generate random password in Excel? (9)
How to quickly generate random password in Excel? (10)
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

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 | ...
Featured Features: Grid Focus |Design View | Big Formula Bar ||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 Toolsets: 12 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, ...) | (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...

How to quickly generate random password in Excel? (11)

Read More... Free Download...

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!

Read More... Free Download...

How to quickly generate random password in Excel? (2024)

FAQs

How to quickly generate random password in Excel? ›

If you want to use RAND to generate a random number but don't want the numbers to change every time the cell is calculated, you can enter =RAND() in the formula bar, and then press F9 to change the formula to a random number. The formula will calculate and leave you with just a value.

How to generate random passwords in Excel? ›

Note that you can use any combination of the following formulas to generate a password with a different specific length:
  1. CHAR(RANDBETWEEN(65,90)) to generate a random uppercase letter.
  2. RANDBETWEEN(0,9) to generate a random number between 0 and 9.
  3. CHAR(RANDBETWEEN(97,122)) to generate a random lowercase letter.
Sep 18, 2023

How do I generate random codes in Excel? ›

If you want to use RAND to generate a random number but don't want the numbers to change every time the cell is calculated, you can enter =RAND() in the formula bar, and then press F9 to change the formula to a random number. The formula will calculate and leave you with just a value.

How do I generate random records in Excel? ›

In the first cell underneath your heading row, type “= RAND()” Press “Enter,” and a random number will appear in the cell. Copy and paste the first cell into the other cells in this column. Once each row contains a random number, sort the records by Random_number column.

How are random passwords generated? ›

A random password generator is a software program or hardware device that takes input from a random or pseudo-random number generator and automatically generates a password. Random passwords can be generated manually, using simple sources of randomness such as dice or coins, or they can be generated using a computer.

Does Microsoft have a Password Generator? ›

When you open a web page that contains a sign-up form or a change password field, Microsoft Edge activates Password Generator. When you select the password field, Password Generator suggests a strong password in a drop-down menu. You just need to select the suggested password and submit it to the website. That's it.

What is the rand function in Excel? ›

The RAND Function[1] is categorized under Excel Math and Trigonometry functions. The function will return a random number between 0 and 1. It provides a real number that will be returned every time the worksheet is opened. As a financial analyst, the RAND function can be used to generate random numbers.

Can we generate random string in Excel? ›

Use the REPT Function for an Array of Characters: To create a string of random letters, you'll need to repeat the random letter generation process multiple times and concatenate the results. An array formula can be used for this.

What is the best random password generator? ›

Best Password Generators: Our Shortlist
  • 1Password. Best Overall.
  • Dashlane. Best for Business & Personal Use.
  • NordPass. Best Password Generator + VPN.
  • LastPass. Best Free Password Generator.
  • Bitwarden. Best for Enterprises.
Jan 5, 2024

What is the best way to generate a password? ›

Follow tips for a good password
  1. A lyric from a song or poem.
  2. A meaningful quote from a movie or speech.
  3. A passage from a book.
  4. A series of words that are meaningful to you.
  5. An abbreviation: Make a password from the first letter of each word in a sentence.

Can you trust random password generators? ›

Because randomly generated passwords lack recognizable language patterns, they provide a robust defense against such attacks. And if each of your passwords is unique and each password is at least 16 characters long, it will be extremely difficult to “brute-force” one of your passwords.

How do hackers get passwords? ›

Hackers get hold of username-password pairs from previous data breaches and test them on various platforms. Unfortunately, many people use the same passwords across many accounts. Hackers can access multiple accounts using the same stolen credentials if one account is compromised.

Do hackers actually guess passwords? ›

There are some hackers who are so hard working that they would endure matching your personal data with every word in the dictionary. Yes, they exist. They would browse through every possible word to partner with, for example, your birth month, in order to guess your passwords.

Is it safe to use a random password generator? ›

To prevent sophisticated hackers from getting into your accounts, you need to use a random password generator to keep your accounts safe. The password generator will create dozens of random passwords consisting of numbers, letters, and symbols that even the most skilled hackers cannot guess.

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6561

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.