Add Password to Excel

There are two ways to “add password to excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: go to File ▸ Info ▸ Protect Workbook ▸ Encrypt with Password, set a password, and the whole .xlsx then requires it to open.

Annotated stepsExcel
1

Open File ▸ Info, click Protect Workbook, and choose Encrypt with Password.

2

Type a strong password, click OK, then re-enter it to confirm.

3

Save the file (Ctrl+S) so the encryption is written to disk.

4

Test it by closing and reopening the workbook — it should prompt for the password before opening.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Encrypting a workbook with a password locks the entire file so it cannot even be opened without the password — the contents are scrambled on disk, not merely set to read-only. This is workbook-level (file-level) encryption, reached through File ▸ Info ▸ Protect Workbook ▸ Encrypt with Password, and it is completely separate from sheet protection: it controls who can open the file at all, rather than which cells can be edited once it is open. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “add password to excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a workspace setting that makes a big sheet comfortable to navigate, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

You have a payroll workbook to email. Open File ▸ Info ▸ Protect Workbook ▸ Encrypt with Password, type a password such as Spr1ng!2026, confirm it, and save. The next time anyone — including you — double-clicks the .xlsx, Excel demands that password before it will display a single cell. Without it the file is unreadable; lose the password and there is no built-in way back in. Encrypt a workbook when the whole document is sensitive — salaries, contracts, personal data — and must not be readable by anyone who gets the file. It is the right tool when the goal is "nobody opens this without the password", as opposed to merely keeping a few formula cells from being overwritten. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. Here is the takeaway for “add password to excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Confusing this with Protect Sheet — encryption controls opening the file, not which cells can be edited.
  • Losing the password: encrypted workbooks have no official recovery, so a forgotten password can mean permanent lockout.
  • Assuming a read-only or "mark as final" setting is encryption — only Encrypt with Password actually scrambles the file.
  • Relying on it for a shared OneDrive file where co-authoring expects an unencrypted document; encryption can block online editing.

Frequently asked questions

Is encrypting the file the same as protecting a sheet?

No. Encryption stops the file from opening without a password; sheet protection (Review ▸ Protect Sheet) lets the file open but locks certain cells from editing.

Can I remove the password later?

Yes — open the file with the password, return to File ▸ Info ▸ Protect Workbook ▸ Encrypt with Password, clear the password box, and save.

What if I forget the password?

There is no official Microsoft bypass for a forgotten open-password; the encryption is genuine, so always store it somewhere safe before you rely on it.

Other ways people ask this

This is also commonly searched as “add a password to excel”, “how to add a password to excel”, “how to add password in excel” and “how to add password for excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.

This guide also answers

  • how to insert password in excel

Why do people search for this in so many different ways?

Because the same task has many names. “add a password to excel”, “how to add a password to excel”, “how to add password in excel” all point at the one operation explained on this page, which is why they all lead here.