PDF download Download Article
A quick guide to putting a required password on a file in Microsoft Excel
PDF download Download Article

Do you have an important Excel file you want to protect? You can easily lock your Excel workbook with a password. For even more safety, you can set the spreadsheet as "Read Only". This prevents accidental editing from any viewers. Be sure to use a password you can remember, as you won't be able to reset it. This wikiHow will show you how to password-protect a file in Microsoft Excel using your Windows or Mac computer.

Things You Should Know

  • Click "File" → "Info" → "Protect Workbook" → "Encrypt with Password". Enter a password twice and click "OK".
  • To set as Read-Only, click "File" → "Info" → "Protect Workbook" → "Always Open Read-Only".
  • Be sure to use a password you can remember; you won't be able to reset it if you forget.
Method 1
Method 1 of 2:

Using Office 365/Excel 2016, 2013, 2010

PDF download Download Article
  1. If needed, you can create a new spreadsheet.[1]
  2. This will be at the top-left corner of the window, next to Home.[2]
    • A new page will open.
    Advertisement
  3. You can find this in the left panel.[3]
  4. This is the first tile of the Info tab.[4]
    • A drop-down menu will open.
  5. If you want to prevent accidental changes from others when you share your workbook, you can set the workbook as "Read-Only". Keep in mind that others will be able to change this mode if they choose.
    • Click Always Open Read-Only in the drop-down menu.
    • You'll see an icon of a pencil and cancel symbol underneath Protect Workbook.
  6. This will be below Always Open Read-Only.
    • A pop-up box will open.
  7. Keep in mind you won't be able to reset or recover the password if you forget it. Be sure to use a password you can remember.[5]
  8. Input the same password as the previous step.[6]
    • You should now see a lock and key icon underneath Protect Workbook.
  9. If you're prompted to save, be sure to save. When you open the workbook again, you'll be asked to enter in your password.
  10. Advertisement
Method 2
Method 2 of 2:

Using Excel 2007

PDF download Download Article
  1. If needed, you can create a new one.
  2. This is the tab at the top, next to Data.[7]
  3. This is in the "Changes" section.
  4. If you have also set up specific windows within the file, check the pertinent box as well.
  5. Be sure to use a password you can remember, as you won't be able to reset it. You may need to do this twice.
  6. Your Excel file is now password-protected. When you open it, you'll be asked to input your password.
  7. 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!

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

Rain Kengly
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Rain Kengly. Rain is a tech writer and editor for wikiHow with over 5 years of professional writing experience. In the past, Rain has worked with other creative writers as a Writing Tutor at San Francisco State University and has published gaming features, guides, and news articles for a variety of media outlets. Rain shares a lifelong passion for writing and gaming and is eager to grow alongside new tech inventions. This article has been viewed 361,854 times.
How helpful is this?
Co-authors: 19
Updated: July 25, 2025
Views: 361,854
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 361,854 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