Protect Sheet & Workbook
Lock cells, protect formulas from accidental edits, and password-protect sheets and workbooks.
✅ What You Will Learn
When you share an Excel file with colleagues, there is always a risk that someone accidentally overwrites a formula, moves a chart, or deletes a row they did not mean to. Sheet protection prevents this by locking cells so they cannot be edited without a password.
By default, all cells are "locked" — but locking only takes effect when you protect the sheet. The workflow is: (1) unlock the cells you want to allow editing (input cells), (2) leave everything else locked (formulas, headers, charts), (3) protect the sheet. Users can then only edit the unlocked input cells.
Workbook protection prevents structural changes — adding, deleting, or renaming sheets. File-level password encryption prevents the file from being opened without the password.
Examples
📌 Key Points to Remember
- ✓Unlock → Protect workflow: unlock input cells first, then protect the sheet. Never the reverse.
- ✓Sheet protection password is case-sensitive — write it down. Lost passwords are not recoverable by Microsoft.
- ✓Protection prevents accidental edits but is NOT a security feature — determined users can remove basic sheet protection with tools
- ✓Use File → Info → Protect Workbook → Encrypt with Password for real security (file cannot be opened without password)
- ✓Hiding a sheet (right-click tab → Hide) combined with "Protect Workbook Structure" prevents users from unhiding it
🏢 Real-World Application
Finance teams distribute Excel budget templates where managers can only edit their department input cells — the consolidation formulas, formatting, and summary calculations are all protected. HR distributes appraisal forms where each manager sees only their team section (other sections are hidden and the workbook structure is protected). This ensures the master model stays intact while allowing controlled data entry.
⚠️ Common Mistakes to Avoid
❓ Frequently Asked Questions
Can I protect a sheet without a password?
Yes — leave the password field blank when protecting. The sheet is still protected against accidental edits but anyone can unprotect it with Review → Unprotect Sheet (no password required). This is appropriate for most internal shared files.
How do I hide formulas so users cannot see them in the formula bar?
Select the formula cells → Ctrl+1 → Protection tab → check "Hidden". Then protect the sheet. Hidden cells show no formula in the formula bar when selected — the result is visible but the formula is not.
How do I let a macro run on a protected sheet?
In the VBA code, use ActiveSheet.Unprotect "password" before the code runs, then ActiveSheet.Protect "password" after. Or check "Protect worksheet and contents of locked cells" in Protect Sheet but leave the macro permission option unchecked.
✏️ Practice Exercise
Build a budget submission template: (1) Input cells for each department (B2:B10 — unlocked), (2) Auto-calculated totals and variances in column C (locked formulas), (3) Headers and formatting cells (locked). Protect the sheet with a password. Test that users can edit B2:B10 but cannot modify column C. Then set up Allow Edit Ranges so that department managers can only edit their own rows using separate range passwords.
Learn Excel with Live Trainer Guidance
These tutorials give you the foundations. Our live Excel course at EVIKA Academy, Noida teaches you to build real dashboards on actual business data — with a trainer who uses Excel professionally every day.