Technical Anshu
Tutorials Blog
Excel Lock Guide

Lock Excel File with a Password That Actually Protects It

Excel gives you several password boxes, and they are not equal. One of them scrambles your file with real encryption. The others just politely ask people not to edit. The method in the video, Save As then Tools then General Options then Password to open, is the real one. This guide walks that exact route and shows you how to use it without locking yourself out.

By Technical AnshuMicrosoft Excel7 minute read
Watch the full video: locking an Excel file with a password, shown step by step

The video keeps it short: open the file, press F12, click Tools, open General Options, type a Password to open, confirm it, and save. Under a minute, done. What the short video cannot cover is why this particular password is the one worth trusting, what is sitting in the very same dialog that should not be trusted the same way, and the one habit that decides whether this lock protects your data or permanently deletes your access to it. That is what this page adds.

Save As - Tools - General Options (recreated dialog)
General Options

Password to open: ••••••••  = REAL ENCRYPTION

Password to modify: (leave empty)  = courtesy lock only

☐ Read-only recommended   ☐ Always create backup

The General Options dialog from the video. Two password boxes sit side by side in this one window, and only the first one encrypts anything.
1

The Video Route, Step by Step

This is the exact method from the video. It works on an already-open workbook and writes the password into the file when you save.

  1. Open the Excel file you want to protect.
  2. Press F12. The Save As dialog opens.
  3. Do not save yet. Click the Tools button near the Save button, then click General Options.
  4. In the Password to open box, type your password and press Enter or click OK.
  5. Excel asks you to re-enter the same password to confirm. Type it again exactly, capitals included.
  6. Back in Save As, choose the location and click Save. If Excel says the file already exists, click Replace. The password is only written at this moment, not before.
  7. Close the file and open it again. Excel should now demand the password before showing anything.

One setting matters here: make sure you save as .xlsx. The modern format gets modern encryption. Saving back into the old .xls format keeps an old, much weaker style of protection alive, so let the file upgrade its format if Excel offers.

2

What This Password Actually Does to Your File

The Password to open is not a polite sign on the door. It changes what the file physically is. When you save, Excel encrypts the entire workbook, every sheet, every number and every formula, using AES encryption, with the password stretched through a deliberately slow chain of hash rounds so that trying passwords one by one is expensive.

Someone who gets this file without the password gets scrambled bytes. They cannot read a single cell, cannot peek at the values with another program, and cannot remove the password from the file, because there is no separate password stored somewhere to remove. The password is the key that rebuilds the data. No key, no data.

This is why the same dialog deserves respect in both directions. It is strong enough to protect a salary sheet or a price list that leaks by email. It is also strong enough that if you forget it, your own data is gone in exactly the same way. That honest trade is covered in the next sections.

3

The Other Box in the Same Dialog Is Not the Same Lock

Right under Password to open sits Password to modify, and it is a completely different animal. A file saved with only a modify password opens for anyone, shows everything, and simply opens read-only unless the password is typed. Any reader can read every value and can even save an editable copy under a different name.

That box has a genuine use: it stops a shared master file from being overwritten by accident. But it protects editing, not secrecy. If the video's goal is keeping sensitive data safe, the modify box alone does not do it. The same warning applies to the Review tab locks, Protect Sheet and Protect Workbook, which guard cells against edits but leave all data readable. One of the companion guides in this series compares those locks side by side; the short version is: for privacy, only the open password counts.

4

Choose a Password the Lock Deserves

Encryption this strong makes the password itself the weakest link, because guessing is the only way in. Help yourself properly:

  1. Use a passphrase, several words strung together, rather than a name, a date or the company name. Length beats clever symbols.
  2. Remember that Excel passwords are case-sensitive. The password you set is the password with those exact capitals, and a capitals mistake is the most common reason people think they have forgotten it.
  3. Write it down somewhere safe the same day, in a password manager or a sealed record you control. Not in the file name, not in a note inside the same folder, and not only in your memory.
  4. Do not reuse the password of your email or any other account on the file.
5

Test the Lock Before You Trust It

Thirty seconds of testing saves the classic disaster story. After saving, close the file fully and reopen it. First type a wrong password: Excel must refuse. Then type the right one: the file must open normally. Only after both tests pass should you delete or overwrite anything else.

Until you have done this once or twice, keep one unprotected copy of the file somewhere private as your safety net, for example in a folder only you can open. Once the routine is familiar, delete that copy, because an unprotected twin quietly defeats the entire point of the lock.

Honest warning, stated plainly: if you forget the Password to open, Microsoft cannot reset it and there is no back door. The encryption that keeps strangers out keeps you out too. Any tool or website promising guaranteed recovery of a well-chosen password on a modern Excel file is not telling the truth; at best it can guess, and guessing only defeats weak passwords. Set the lock, then immediately record the password somewhere safe.

Watch the Lock Being Set in the Video

The video sets this password on a real Excel file in about a minute, including the confirmation step and the save.

Watch Full Video
Frequently Asked Questions

Is the Save As password from the video the same as Encrypt with Password in the File menu?

Yes, they are two doors to the same lock. File, Info, Protect Workbook, Encrypt with Password sets the same file-open password that the video sets through F12, Tools, General Options. Whichever route you use, the result is the same AES-encrypted file that asks for the password before opening.

I set the password but Excel opens the file read-only instead of asking first. What did I set?

You set the Password to modify, the second box in General Options. That lock never encrypted anything: the file opens for reading, and the password is only requested when someone tries to edit and save over the original. Clear that box, put your password in the Password to open box instead, and save again.

Does locking the file change or damage my data in any way?

No. Your sheets, values and formulas stay exactly as they are. Excel encrypts the saved file on disk and decrypts it in memory when you open it with the correct password. The only visible difference is the password prompt at open, and the file cannot be read by any program until that prompt is passed.

This guide is based on the Technical Anshu video on locking an Excel file. Stuck on a step? Ask in the video comments and you will get a reply.