Esta página también está disponible en español.Cambiar a español
ExcelGuide · Automate and collaborateLevel 2 · Intermediate5 min readUpdated:

Protect sheets and cells: allow typing only where it belongs

Quick answer

In Excel every cell starts out marked as Locked, but locking does nothing until you protect the sheet. First select the cells people should type in and clear Locked in Format Cells › Protection (Ctrl+1). Then go to Review › Protect Sheet, choose what users may do and, if you like, add a password.

You build a perfect budget template, hand it to a colleague and get it back with the total typed over the formula. Or someone deletes a column “that wasn't used” and nothing adds up anymore. It isn't malice: on an open sheet, everything looks editable.

The fix is to protect the sheet. It works like a paper form: the blank boxes are for filling in and the rest is printed and can't be touched. In Excel it takes two steps, and the order matters: first you unlock the cells people can type in, then you protect the sheet. Do it the other way around and the whole sheet ends up locked.

In this guide you set it up on a quote, hide formulas if you want, and learn why this protection prevents mistakes but is not a security feature.

What you'll learn

  • Why you must unlock the input cells before protecting
  • How to protect the sheet and choose what others can do
  • How to hide formulas and how to remove protection later
  • What truly protects a file and what doesn't

Step by step

Decide which cells people can fill in

Look at your sheet the way someone else will. In this quote, only quantity and price should be typed (B2:C4). The totals in column D are formulas and must stay intact.

Give those cells a soft fill color: anyone who opens the file will know where to type without reading instructions.

D2=B2*C2

Line total: quantity times price.

D5=SUM(D2:D4)

Quote total.

Quote with the Quantity and Price columns in yellow as input cells and the Total column holding formulas; the grand total is $2,000.

Unlock those cells in Format Cells › Protection

Select B2:C4 (for scattered cells, hold Ctrl while you click). Press Ctrl+1 or right-click › Format Cells.... On the Protection tab, clear Locked and click OK.

Nothing seems to change. That's expected: the Locked box only takes effect once the sheet is protected.

Format Cells window with the Protection tab open and the Locked box cleared and highlighted.
Watch out

Every cell on a new sheet starts with Locked checked. If you protect without this step, nobody will be able to type in any cell.

Hide the formulas if you don't want them seen (optional)

If you'd rather nobody sees how you calculate (internal margins or rates, for example), select the formula cells (D2:D5), go back to Format Cells › Protection and check Hidden. Leave Locked checked.

Once you protect the sheet, the cell still shows the result, but the formula bar stays empty.

Protection tab of Format Cells with Locked and Hidden both checked; the Hidden box is highlighted.

Go to Review › Protect Sheet

Open the Review tab and, in the Protect group, click Protect Sheet. It protects only the active sheet: if your workbook has several sheets, repeat the process on each one.

Excel ribbon with the Review tab active and the Protect Sheet button in the Protect group highlighted.

Choose what's allowed and, if you like, set a password

In the Allow all users of this worksheet to list, Select locked cells and Select unlocked cells are already checked. Check whatever others need: for example Sort or Use AutoFilter if the sheet has filters, or Format columns so they can widen columns.

Type a password in Password to unprotect sheet (it's optional), click OK and type it again to confirm.

Protect Sheet window with the password box highlighted and permissions checked: select locked and unlocked cells and use AutoFilter.
Watch out

If you forget the password, Microsoft can't recover it. Store it in your password manager.

Test it as if you were someone else

Try typing in a total cell: Excel warns you that the cell is on a protected sheet. Now type in a yellow cell: it works. Press Tab and the cursor jumps straight to the next unlocked cell, just like a form.

Protected quote: the yellow quantity and price cells can be edited and the gray Total column is locked.
Tip

To let people click only the yellow cells, clear Select locked cells when you protect. It feels very tidy in templates that many people fill in.

Remove protection when you need to change the template

While the sheet is protected, the button changes its name: go to Review › Unprotect Sheet and enter the password if you set one. It's also under File › Info › Protect Workbook. Make your changes and protect it again.

Review tab with the Unprotect Sheet button highlighted, which appears when the sheet is protected.

Know the limit: sheet protection is not security

Sheet protection stops mistakes, not snoops. Microsoft says it plainly: it isn't intended as a security feature. Anyone who opens the file can copy the data into another workbook, and there are tools that strip a sheet password in seconds.

If the goal is to keep unauthorized people from opening the file, use File › Info › Protect Workbook › Encrypt with Password. To stop people adding, deleting or hiding sheets, use Review › Protect Workbook.

Excel File view on Info, with the Protect Workbook menu open and Encrypt with Password highlighted.

Expert tips

  • Pair it with drop-down lists. Protection stops people touching formulas; data validation stops odd values in the open cells. Together, the template is mistake-proof: drop-down lists and data validation.
  • Use the Input cell style. Under Home › Cell Styles, the Input style gives fill-in cells a recognizable look. Apply it before unlocking and you get a consistent visual cue across all your templates.
  • Ranges with their own password. With Review › Allow Edit Ranges you can let each department edit only its own area, with different passwords, before protecting the sheet.
  • Lawyers and admin staff: in fee, invoice or settlement templates, protect the tax and withholding formulas so nobody overwrites them while adjusting a figure.

Common mistakes and how to fix them

Problem

You protect the sheet and nobody can type in any cell.

Fix

You skipped the unlocking step. Unprotect the sheet, select the input cells, open Format Cells (Ctrl+1) › Protection, clear Locked and protect again.

Problem

With the sheet protected, others can't filter or sort.

Fix

Apply filters before protecting and check Use AutoFilter in the Protect Sheet window. For sorting, check Sort, but note that ranges containing locked cells can't be sorted.

Problem

An Excel table stops growing when you type below it.

Fix

On a protected sheet, tables don't expand automatically. Add empty rows inside the table before protecting, or unprotect the sheet to resize it.

Problem

You set a password and can't remember it.

Fix

Microsoft can't recover it. Look for an earlier unprotected copy and, from now on, keep passwords in a password manager.

In Excel for Mac

In Excel for Mac it's the same: Format Cells (⌘+1) › Protection › Locked, then Review › Protect Sheet. The permission options and the password work the same way.

Frequently asked questions

Why are all cells locked if nothing happens?

Because the Locked box is just a flag. Excel only enforces it when you protect the sheet. That way, once you protect, everything is closed except what you unlocked beforehand.

Can I protect several sheets at once?

Not from the ribbon: Protect Sheet acts on the active sheet. Repeat it on each sheet or automate it with a macro.

Does protection still work if I share the file on OneDrive?

Yes. Protection travels with the file and is respected even when several people edit at once. More on collaborating in teamwork in Excel.

Does a sheet password stop people from opening the file?

No. For that you need File › Info › Protect Workbook › Encrypt with Password. A sheet password only stops someone removing the protection inside Excel.

Official sources

Microsoft documentation consulted for this guide.

Saved only in this browser.