Excel TVExcelTV

How to Password Protect an Excel File

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

Illustration of an Excel workbook secured with a padlock

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. Microsoft separates those tools on purpose, and Excel’s 1,048,576-row worksheet limit is a reminder that even one workbook can hold a very large amount of sensitive data.

  • 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 note: 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. Microsoft also separates file encryption from workbook-structure protection, so choosing the right setting matters.

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. That matters because a worksheet can contain 1,048,576 rows of data, so one workbook can hold far more sensitive information than people realize. I recommend this as the default for confidential files.

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

  1. Open the workbook in Excel.
  2. Go to File.
  3. Choose Info.
  4. Select Protect Workbook.
  5. Click Encrypt with Password.
  6. Type a strong password and confirm it.
  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. That distinction matters because Excel workbooks can store 16,384 columns of data per sheet, and file-level encryption is what stops the workbook from opening in the first place. If you need privacy, this is the protection layer that counts most.

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 note: 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. That is usually a quick process, but it should still be handled carefully because one workbook can contain 1,048,576 rows of records and formulas.

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. I like passphrases better than clever short passwords, because a workbook with 16,384 columns of possible content is too important to trust to something easy to guess or reuse elsewhere. A password manager is the best companion to encryption.

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. That matters because Microsoft’s Excel guidance treats workbook protection as a separate tool from file encryption, and a workbook can still hold 1,048,576 rows of content even when the tabs are locked.

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 is why I recommend storing the password in a manager before you need it. A workbook with 1,048,576 rows of data is not the place to improvise memory or rely on a sticky note.

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’s worksheet limits mean one file can still carry 1,048,576 rows and 16,384 columns of data, so a 30-second review is worth it when the file contains confidential numbers, names, or formulas.

  • 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.

FAQ

A few common questions come up every time I teach password protection in Excel. The short version is that open-password encryption controls access, workbook protection controls structure, and neither one replaces good file-handling habits. If you want the file to stay useful and private, use the right layer for the job.

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

If you only remember one thing, remember this: password protecting an Excel file is about controlling access to the workbook itself, while workbook protection is about controlling structure. For sensitive files, I usually start with encryption, then add workbook protection and sharing discipline as needed.

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.