Excel TVExcelTV

How to Password Protect an Excel File

Illustration of an Excel workbook secured with a padlock to represent password protection

Password protecting an Excel file is one of the fastest ways to keep a spreadsheet private, especially when the workbook contains payroll data, pricing, customer lists, or forecasts. I usually treat it as the first layer of defense, then add sharing controls and workbook protection where needed.

Key takeaways

If you want the short version, use file encryption for access control and workbook protection for structure control. Excel’s 1,048,576-row worksheet limit means one workbook can hold a lot of sensitive data, so I treat encryption as the default and structure locks as the follow-up.

  • Use File > Info > Protect Workbook > Encrypt with Password when you need to control who can open the file.
  • Use workbook protection when you only need to lock the structure, not the data itself; see Excel workbook protection.
  • Keep the password in a manager or approved vault, because Excel does not give you a friendly recovery path if you forget the open password.
  • Treat password protection as one layer, not the whole security plan.

Source: Microsoft Support documents that a worksheet can hold 1,048,576 rows and 16,384 columns, which is why a single workbook can store a lot of sensitive information.

How do you password protect an Excel file?

Use Excel’s Encrypt with Password option when you want the file to prompt for a password before anyone can open it. Microsoft says Excel workbooks can hold 1,048,576 rows, so a single file can expose a lot of data; encryption puts the prompt in front of that content.

Step-by-step: add an open password in Excel

Step 1: Open the workbook in Excel Step 1: Open the workbook in Excel

Step 2: Go to File menu Step 2: Go to File

Step 3: Select Info Step 3: Choose Info

Step 4: Click Protect Workbook Step 4: Select Protect Workbook

Step 5: Select Encrypt with Password Step 5: Click Encrypt with Password

Step 6: Enter password Step 6: Type a strong password and confirm it

Step 7: Save the file Step 7: Save the file

Once you save, close the workbook and reopen it to confirm the prompt appears. I always do that extra check because a security setting that is only assumed is not a security setting at all.

What happens after you set the password?

Excel encrypts the workbook so the file cannot be opened without the password. That is different from simply hiding a sheet or marking a file read-only. If the workbook holds anything sensitive, I want the prompt to happen before the contents load, not after the file is already open.

My practical recommendation

If the workbook is shared with a small team, write down who is allowed to know the password and where the approved copy lives. A file-level password works best when the process around it is just as disciplined as the spreadsheet itself.

What does an Excel file password actually protect?

An open password protects file access, not just the visible sheet tabs. Microsoft documents 16,384 columns per worksheet, so a workbook can carry a huge amount of data; file-level encryption blocks opening, while worksheet hiding and read-only settings do not.

Password to open vs workbook protection

These two features are easy to confuse, but they solve different problems:

FeatureWhat it doesWhen to use it
Password to openEncrypts the workbook so Excel requires a password before openingUse for confidential files
Workbook protectionPrevents users from adding, deleting, renaming, moving, or hiding sheetsUse for structure control
Worksheet protectionLimits edits inside a sheetUse to lock formulas or important cells

If your goal is to protect the file itself, open password encryption is the right choice. If your goal is to stop someone from rearranging tabs, the workbook-level setting is better. For a deeper structural example, I also recommend reading Excel workbook protection.

When I would use both

In real workbooks, I often use both encryption and workbook protection together. For example, a finance model might need encryption to control access and workbook protection to stop sheet tampering. That combination is especially useful when several people open the file but only a few are allowed to change its structure.

What it does not protect

Password protection is useful, but it is not magic. It does not replace good sharing habits, secure storage, or a review process for sensitive spreadsheets. If someone already has the password, they have access. That is why I treat the password as a gate, not as the entire security plan.

Source: Microsoft’s Excel guidance separates file encryption, read-only behavior, and worksheet/workbook protection into different tools. That separation is the main clue that Excel security is layered, not one-size-fits-all.

How do you change or remove the password later?

You change or remove an Excel open password by reopening the file, returning to Encrypt with Password, and then replacing or clearing the password. Since a workbook can hold 1,048,576 rows, I always verify the change immediately to avoid accidental lockout or false confidence.

To change an existing password

  1. Open the workbook with the current password.
  2. Go to File > Info > Protect Workbook > Encrypt with Password.
  3. Replace the current password with a new one.
  4. Save the workbook.
  5. Close it and reopen it with the new password to verify the change.

I always test the new password right away. It takes less than a minute, and it avoids the worst-case scenario where you assume the password changed but the old one is still in circulation.

To remove the password entirely

  1. Open the workbook with the password.
  2. Go back to Encrypt with Password.
  3. Delete the password from the box so it is blank.
  4. Save the file.
  5. Reopen it to make sure Excel no longer asks for a password.

Only do this when the file no longer needs privacy controls. If the workbook still contains sensitive data, I would rather keep the password in place and reduce access elsewhere first.

A safer workflow for teams

If more than one person uses the file, document the change in a secure place and confirm the updated password with everyone who should have it. A shared spreadsheet can lose control quickly if different people are editing, copying, or forwarding outdated versions.

What makes a good Excel password?

A good Excel password is long, memorable, and stored safely. Microsoft recommends at least 8 characters with a mix of letters, numbers, and symbols, which is a useful floor even though I prefer longer passphrases for sensitive workbooks and shared files.

My practical rules for password strength

  • Use a long passphrase instead of a short random string you will forget.
  • Avoid names, dates, company names, and spreadsheet terms.
  • Do not reuse the same password across different workbooks.
  • Store the password in a manager or approved vault.
  • If the workbook is business-critical, assign an owner for the password.

I also recommend avoiding a “one password for everything” culture. It is convenient in the short run, but it creates a lot of risk if one password leaks.

Keep the password usable

Security that nobody can operate tends to get bypassed. The best Excel password is the one people can use correctly when they need to open the file, while still being hard for outsiders to guess. That usually means a long phrase with enough randomness to resist guessing, but enough meaning for your team to remember.

Don’t forget the process

The password itself is only half the job. You also need a way to handle handoff, turnover, and recovery. I like to record where the password is stored, who owns it, and what the approved process is for changing it later.

When should you use workbook protection instead of encryption?

Use workbook protection when you want to control the structure of a spreadsheet, not the ability to open it. Because Microsoft treats this as a separate tool from file encryption, I use it for layout control while keeping encryption for access control.

Use workbook protection when you want to:

  • Stop users from adding, deleting, moving, hiding, or renaming sheets.
  • Keep the workbook layout stable for reports or models.
  • Protect the structure without blocking access to the file itself.

If that is your goal, Excel workbook protection is the better fit.

Use encryption when you want to:

  • Prevent the workbook from opening without authorization.
  • Protect financial data, customer records, or confidential calculations.
  • Add a true access barrier instead of just a layout guardrail.

Use both when the workbook is sensitive

A lot of business files need both layers. For example, a forecast file might need encryption to restrict access and workbook protection to stop accidental sheet changes. I usually think of encryption as the front door and workbook protection as the internal door lock.

What if you forget the Excel password?

If you forget the open password, there is no convenient built-in recovery path in Excel. That matters because a workbook can hold 1,048,576 rows, so I treat password storage and backup planning as part of the security design, not an afterthought.

Best practices to avoid lockout

  1. Store the password in a secure manager.
  2. Keep a record of which team owns the file.
  3. Document how password changes get approved.
  4. Test the password immediately after setting it.
  5. Keep at least one controlled backup copy of the workbook.

If the password is lost

If the password is gone and there is no approved recovery route, your practical options are usually limited. That is why prevention matters so much. I would rather spend a minute documenting the password now than spend hours trying to reconstruct a locked file later.

If the file is business-critical

For high-value files, pair encryption with version history, controlled storage, and access management. Password protection is useful, but it should sit inside a broader process for sensitive information.

A quick source-backed checklist

Use this checklist before you share the workbook. Microsoft says a worksheet can hold 1,048,576 rows and 16,384 columns, so the right security setup matters more than people expect when the file contains sensitive data or multiple editors.

  • A single Excel worksheet can hold 1,048,576 rows and 16,384 columns, so spreadsheets can concentrate a lot of sensitive data.
  • Microsoft separates file encryption from workbook protection.
  • An open password is the right choice when you need to control who can open the file.
  • Workbook protection is the right choice when you only need to lock the sheet structure.
  • Password managers reduce the risk of lockout and re-use.

Sources: Microsoft Support on Excel protection and workbook limits; Microsoft’s workbook protection guidance; Microsoft’s file-format documentation for Excel workbooks.

FAQ

Open-password encryption controls access, workbook protection controls structure, and neither one replaces good file-handling habits. With 1,048,576-row worksheets in play, I recommend using the right layer for the job instead of relying on a single setting.

Can I password protect just one sheet in Excel? Yes, but that is worksheet protection, not file encryption. It helps stop edits inside a sheet, but it does not stop someone from opening the workbook if they already have access.

Is password protection enough for payroll or customer data? Usually not by itself. I would combine encryption with access control, secure storage, and workbook protection where needed.

Does Excel password protection work the same in every version? The menu path is similar, but the exact wording can vary a little by version. The main idea stays the same: use file encryption for access control.

Can I remove the password after the file is no longer sensitive? Yes. Open the workbook, return to Encrypt with Password, clear the password, save, and verify that Excel no longer prompts at open.

What should I do if the file is shared across a team? Pick one owner for the password, document the approved storage location, and make sure everyone uses the same current version of the file.

Final thought

Password protecting an Excel file is about controlling access to the workbook itself, while workbook protection is about controlling structure. Because a worksheet can hold 1,048,576 rows, the safest default is encryption first, then workbook protection and sharing discipline.

Sources: Microsoft Support on Excel protection and workbook limits; Microsoft’s workbook protection guidance; Microsoft’s file-format documentation for Excel workbooks.

Written by

Allen Hoffman

Contributor, Excel TV

  • Lookup Functions
  • Data Manipulation
  • Keyboard Shortcuts
  • Workflow Efficiency
Allen Hoffman is a contributor to Excel TV focused on practical Excel techniques for everyday data work. His tutorials cover topics including lookup functions, data manipulation, cell formatting, keyboard shortcuts, and workflow efficiency. Allen's writing aims to make common Excel tasks clearer and faster, with step-by-step guidance suited to analysts and professionals who use Excel regularly in their work.

Read more articles by Allen Hoffman

Editorial standards

Fact Checking & Editorial Guidelines

Every article on Excel TV is held to a published editorial standard. The goal: accurate, current, and useful — without filler.

  1. Expert review.Drafts on technical Excel topics are reviewed by a contributor with hands-on, working knowledge of the feature being covered.
  2. Source validation.Claims about Excel behavior are tested in current Microsoft 365 builds. Third-party product claims are sourced from the vendor's own documentation.
  3. Disclosure.Affiliate links, sponsorships, and any commercial relationships that influenced a piece are disclosed in-line and at the foot of the article.
  4. Updates.Articles are revisited when Microsoft ships changes that affect the content. The most recent revision date is shown on every post.

Spot a problem? Email editor@excel.tv and we will look at it.

Subject-matter review

Reviewed by Subject Matter Experts

Technical Excel articles are reviewed by contributors with verifiable, hands-on experience in the topic — not generalist editors.

  • Qualified reviewers.Reviewers include Microsoft Excel MVPs, working business-intelligence practitioners, and Excel TV editorial staff. See each author's page for credentials.
  • Current to a known Excel build.Procedural articles state which Excel version they were validated against. Where Microsoft has since changed behavior, the article carries an inline update note.
  • Clarity check.Reviewers verify steps are reproducible by a reader at the assumed skill level — not just technically correct in a vacuum.

Want to contribute or review for Excel TV? See the about page.