PDF download Download Article
Encrypt a whole workbook or protect individual sheets
PDF download Download Article

If you have an Excel workbook or spreadsheet that contains sensitive data, you might want to prevent others from opening or editing it. Luckily, it’s easy to add password protection to an Excel file. In this article, we’ll explain how to password protect an entire Excel file to keep other users from opening or editing it without the password. We’ll also explain how to password protect an individual sheet within your workbook.

Adding Password Protection in Excel

  • To encrypt an entire workbook, go to File > Info > Protect Workbook > Encrypt with Password (or File > Passwords on Mac) and enter a password.
  • Protect your workbook or worksheet from unauthorized edits by going to Review > Protect Workbook or Protect Sheet.
Section 1 of 2:

Protecting a Whole Workbook

PDF download Download Article
  1. If you’re using Excel for Windows, this is the tab at the far left side of the Excel menu bar. In Excel for Mac, this is in the menu bar at the top of the screen.[1]
  2. If you’re using Excel for Mac, click Passwords instead and skip straight to this step.
    Advertisement
  3. This will open a dropdown menu with different protection options.
  4. A dialog box will open.
  5. The password will be case sensitive, but it can be any length and contain any combination of characters. You will be prompted to enter the password a second time to confirm it. Next time you open the worksheet, you’ll have to enter the password.
    • In Excel for Mac, you can enter either a password to open the workbook or a password to modify it (or both) from this dialog. You can also choose to set the workbook to read only.
    • To remove the password, open the workbook and enter the password when prompted. Go back to File > Info > Protect Workbook > Encrypt with Password (or File > Passwords on Mac) and delete the password. Then, click OK.
    • This method will prevent anyone who doesn’t know the password from opening the workbook. If you want more advanced protection options, such as preventing users with access to the document from making edits, keep reading.
  6. This tool allows you to set up additional layers of protection (such as preventing other viewers from changing the structure of your workbook). This type of password protection only applies when users try to edit the workbook, not when they try to open it. To access these options:[2]
    • With the workbook open, click the Review tab.
    • Click the Protect Workbook button.
    • Enter a password and verify it. This can be different from the main workbook password.
    • Check any additional protections you want to put in place.
      • For example, check the box next to “Protect structure” if you don’t want people without the password to be able to add, delete, hide, or move sheets.
      • Check “Protect windows” to keep your windows the same size and in the same position any time the workbook is opened.
    • Click OK when you’re done.
    • To unprotect your workbook, go to Review > Protect Workbook and enter the password.
  7. Advertisement
Section 2 of 2:

Protecting a Sheet

PDF download Download Article
  1. This method allows you to add password protections to an individual spreadsheet in your workbook. To start, open the sheet you want to protect, then click Review in the menu bar at the top of Excel.[3]
    • With this method, other users will need to enter a password to make specific types of edits to the sheet.
  2. This button is located on the right side of the Review menu.
  3. In the window that pops up, enter a password to protect your sheet, then enter it again in the Verify field. The password can be any length and can contain any combination of characters, but remember that it is case sensitive.
  4. Use the checklist under the header that says “Allow users of this sheet to:”. For example, you can allow users to select locked or unlocked cells, format cells, insert rows and columns, and so on.
  5. The sheet will now be protected from any changes unless otherwise specified. In order to edit the sheet, you’ll need to go to Review and click Unprotect Sheet, then enter the password.
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    I have made a sheet in Excel which contains 2000 names and addresses, so now I want to make this sequenced. First a, then after that b, c, etc. How do I do this?
    Sylvia Saltaformajo
    Sylvia Saltaformajo
    Community Answer
    Right-click on the column you want to sort your sheet by. A menu will open. Hover over the "Sort" option in it. You will see another menu, click "Sort A to Z" in it.
  • Question
    What do I do if I forgot the password?
    Sylvia Saltaformajo
    Sylvia Saltaformajo
    Community Answer
    Unfortunately you can't recover forgotten passwords for MS Excel spreadsheets. You'll have to recreate a document or recover password using special software. You can find it online, there are many options: Password-Find, Password Lastic, Rixler password recovery, etc.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • Password-protecting your Excel sheet will keep the average user from messing around in your files, but a determined user can purchase password-cracking software to view your sheets.
Advertisement

You Might Also Like

Lock Cells in ExcelLock Cells in Excel
Password Protect a Microsoft Word DocumentEasy Ways to Encrypt Your Sensitive Word Documents with a Password
Set, Reset, Remove and Recover the Password of Excel FilesSet, Reset, Remove and Recover the Password of Excel Files
Unprotect an Excel SheetUnprotect an Excel Sheet
Open a Password Protected Excel File Open a Password Protected Excel File: 2 Simple Ways
Change an Excel Sheet from Read OnlyChange an Excel Sheet from Read Only
Send Documents Securely on PC or MacSend Documents Securely on PC or Mac
Password Protect a PDFPassword Protect a PDF
Set, Reset, Remove and Recover the Password of MS Word Files Set, Reset, & Remove Password Protection of a Word File
Password Protect Files on a Mac4 Easy Ways to Password Protect Files on Mac
Lock a Folder on Windows Lock a Folder on Windows: A Step-by-Step Guide
Protect a PDF File from Copying Secure a PDF Document from Copying and Editing
Protect Folders With Passwords3 Easy Ways to Protect a Folder With a Password
Unshare an Excel Workbook Unshare an Excel Workbook on Desktop & Mobile
Advertisement

About This Article

Megaera Lorenz, PhD
Written by:
wikiHow Staff Writer
This article was co-authored by wikiHow staff writer, Megaera Lorenz, PhD. Megaera Lorenz is an Egyptologist and Writer with over 20 years of experience in public education. In 2017, she graduated with her PhD in Egyptology from The University of Chicago, where she served for several years as a content advisor and program facilitator for the Oriental Institute Museum’s Public Education office. She has also developed and taught Egyptology courses at The University of Chicago and Loyola University Chicago. This article has been viewed 369,644 times.
How helpful is this?
Co-authors: 19
Updated: March 25, 2026
Views: 369,644
Categories: Microsoft Excel
Article SummaryX

1. Open the file.
2. Click File.
3. Click Protect Workbook.
4. Click Encrypt with Password.
5. Enter a password.
6. Click OK.
7. Close the document.
8. Reopen and enter the password.

Did this summary help you?

Thanks to all authors for creating a page that has been read 369,644 times.

Reader Success Stories

  • Ningappa Totigara

    Ningappa Totigara

    Mar 31, 2018

    "How to protect a workbook or worksheet."
    Rated this article:
Share your story

Is this article up to date?

Advertisement