Excel Practice Test

โ–ถ

You've spent hours building a spreadsheet. Maybe it's a budget, a financial model, an inventory tracker, or a template you plan to share with your team. The last thing you want is somebody accidentally deleting a formula. Or overwriting a cell. Or breaking the linked references that took you all afternoon to wire up.

That's where sheet protection comes in. Excel gives you several ways to lock down a workbook. The right approach depends on what you're trying to prevent and who's going to use the file. This guide walks through every level of protection Excel offers, from locking a single cell to encrypting an entire file with AES-256.

You'll learn the counterintuitive default behavior that trips up most beginners. How to combine cell-level locking with sheet protection for templates. When to set a password and when not to bother. How to choose between protection types based on your actual use case. By the end you'll know exactly which menu to click for any scenario you face.

To lock an Excel sheet, go to the Review tab and click Protect Sheet. Enter an optional password, choose which actions users are still allowed to perform, and click OK. By default, every cell is already marked as locked, but that lock only kicks in once the sheet itself is protected. If you want some cells to stay editable, select them first, press Ctrl+1, go to the Protection tab, uncheck Locked, and then protect the sheet.

Before you start clicking around in the Review tab, it helps to understand why people lock sheets in the first place. The most common reason is to prevent accidental changes. Even careful users sometimes click a cell, type a stray character, and hit Enter without realizing they just overwrote a formula.

Multiply that by a team of ten people sharing one workbook over a quarter. You end up with corrupted spreadsheets that nobody can trace back to a single mistake. Protection turns those accidents into harmless clicks that pop up an error message instead of silently breaking your model.

The second reason is protecting formulas and intellectual property. If you've built a pricing calculator, a commission model, or a forecasting tool, the formulas behind it are the value. You want clients or colleagues to enter inputs and see outputs. Not to peek behind the curtain and copy your logic.

Sheet protection plus hidden formulas gives you a way to share the tool without giving away the recipe. It's not bulletproof, but it stops casual snooping. For genuinely sensitive workbooks, you'll want to combine sheet protection with file encryption, which we'll cover later. If you're new to building dashboards, our walkthrough of the Excel dashboard shows how protection fits into a complete reporting template.

A third use case is compliance and audit. Finance teams, healthcare administrators, and anyone dealing with regulated data often need to prove that certain figures weren't tampered with after a reporting period closed. Locked cells with version history give you a defensible audit trail.

Distribution-locked reports โ€” files you send out where only specific fields are editable โ€” fall into the same category. The recipient can fill in their portion, but they cannot modify the surrounding context. Templates work the same way. You build the structure once, lock everything that shouldn't change, and let users focus on the inputs.

Three Levels of Excel Protection

๐Ÿ”ด Cell-Level Protection
  • Scope: Individual cells or ranges
  • Use Case: Templates with editable inputs and locked outputs
  • Setup: Format Cells > Protection tab, then protect sheet
  • Security: Low โ€” deterrent only
๐ŸŸ  Sheet-Level Protection
  • Scope: Entire worksheet contents
  • Use Case: Read-only reports, finished dashboards
  • Setup: Review tab > Protect Sheet
  • Security: Low to medium โ€” easily bypassed
๐ŸŸก Workbook Structure
  • Scope: Add, delete, rename, hide sheets
  • Use Case: Multi-sheet models with linked formulas
  • Setup: Review tab > Protect Workbook
  • Security: Low โ€” prevents accidents
๐ŸŸข File Encryption
  • Scope: Entire file
  • Use Case: Confidential or sensitive workbooks
  • Setup: File > Info > Encrypt with Password
  • Security: High โ€” AES-256, no recovery if lost

Now let's walk through the actual mechanics. The first thing you need to understand is that every cell in a new Excel workbook is already flagged as locked. Open a fresh file, click any cell, press Ctrl+1, and go to the Protection tab. You'll see the Locked checkbox is already checked.

So why can you still type in that cell? Because the lock is dormant until the sheet itself is protected. Think of it like a deadbolt on a door โ€” the bolt exists, but it doesn't do anything until you actually turn it. Protect Sheet turns the bolt.

This two-step design is the single most counterintuitive thing about Excel protection. It confuses thousands of people every day. Once you grasp that default, the workflow becomes obvious. If you want the entire sheet to be read-only, just protect it directly. Every cell is already locked, so protection takes effect everywhere.

If you want some cells to stay editable, you have to unlock those cells first, then protect the sheet. The protection still applies to every other cell. But the ones you specifically unlocked remain free for users to modify. This is the pattern you'll use for almost every real template โ€” inputs editable, outputs and labels locked.

Step-by-Step Protection Methods

๐Ÿ“‹ Protect Sheet

Click the Review tab on the Ribbon. Click Protect Sheet. A dialog box pops up. You'll see a password field at the top โ€” leaving it empty is fine for casual protection, but adding a password adds a small barrier against accidental unlocking. Below the password, you'll see a long checklist of actions users are still allowed to perform: select locked cells, select unlocked cells, format cells, format columns, format rows, insert columns, insert rows, insert hyperlinks, delete columns, delete rows, sort, use AutoFilter, use PivotTable reports, edit objects, and edit scenarios.

By default, only the first two options are checked. That means users can click around and see what's in the cells, but they cannot edit, format, or restructure anything. For most templates that's exactly what you want. If you'd like users to still be able to sort or filter the data, check those boxes. Click OK. If you entered a password, you'll be asked to confirm it. From now on, any attempt to modify a locked cell throws an error message. To remove protection, go back to the Review tab and click Unprotect Sheet. Enter the password if you set one. The sheet is now editable again. See our how to unlock Excel sheet guide for the reverse process.

๐Ÿ“‹ Protect Workbook

Workbook protection is different from sheet protection. It doesn't stop users from editing cells โ€” it stops them from messing with the structure of the workbook itself. That means they can't add new sheets, delete existing ones, rename tabs, move them around, hide them, or unhide hidden sheets. It's perfect for financial models where the sheets are linked together and reordering them would break references.

Click the Review tab. Click Protect Workbook. A small dialog appears with two options: Structure and Windows. Structure is what you want โ€” it locks the sheet tabs. Windows is a legacy option that prevents users from resizing the workbook window and is rarely used in modern Excel. Enter an optional password. Click OK and confirm the password if you set one. Now the sheet tabs are grayed out. Users can still click around within each sheet, but they cannot add or remove sheets. To unprotect, click Protect Workbook again โ€” it acts as a toggle. Remember, this is structural protection only. If you also want to prevent cell edits, combine workbook protection with sheet protection on each tab.

๐Ÿ“‹ Specific Cells

This is the most common real-world scenario. You have a template with input cells the user should fill in and output cells they should never touch. The trick is to unlock the inputs first, then protect the sheet. Start by selecting the cells you want to keep editable โ€” usually the input cells. You can select non-adjacent ranges by holding Ctrl while clicking. Once your selection is set, press Ctrl+1 to open Format Cells. On the Mac, that's Cmd+1.

Click the Protection tab in the Format Cells dialog. You'll see two checkboxes: Locked and Hidden. Uncheck Locked. Click OK. Nothing visible happens yet โ€” but you've just flipped those cells from locked to unlocked. Now go to Review and click Protect Sheet. Set a password if you want. Click OK. Try clicking one of the unlocked cells โ€” you can type freely. Try clicking a locked cell โ€” you get an error message. Done. For more granular control over individual cells, our guide on lock cells in Excel covers advanced range scenarios.

Passwords deserve a careful conversation. When you click Protect Sheet, Excel offers you a password field. Should you use one? It depends on what you're protecting against.

If your goal is to prevent accidents, leaving the password empty is fine. The sheet still throws errors when somebody tries to edit a locked cell. That's enough to make them stop and ask before clicking through. The deterrent works without any password at all.

If your goal is to add a slightly stronger barrier โ€” making someone think twice before unlocking โ€” a password helps. But understand what you're getting. Sheet protection passwords in Excel are notoriously weak. The encryption is reversible.

Free tools online will strip the password from a sheet in seconds. Anyone determined to get past your protection will. So sheet passwords are not real security. They're a polite fence, not a vault.

For genuinely sensitive data, you need file-level encryption, which uses AES-256 and is actually strong. We'll get to that. For now, just know that if you choose to set a sheet password, pick a long one โ€” eight or more characters with mixed case, numbers, and symbols โ€” and store it in a password manager.

Permissions You Can Grant on a Protected Sheet

Select locked cells โ€” lets users click on cells they can't edit
Select unlocked cells โ€” lets users click on editable cells
Format cells โ€” change fonts, colors, borders
Format columns โ€” resize column width, hide columns
Format rows โ€” resize row height, hide rows
Insert columns โ€” add new columns to the sheet
Insert rows โ€” add new rows to the sheet
Insert hyperlinks โ€” embed clickable links
Delete columns โ€” remove existing columns
Delete rows โ€” remove existing rows
Sort โ€” apply sort order to data ranges
Use AutoFilter โ€” apply filter dropdowns
Use PivotTable reports โ€” modify pivots
Edit objects โ€” change charts, images, shapes
Edit scenarios โ€” modify what-if scenarios

Let's walk through a complete real-world example. Locking down a financial template. Imagine you've built a quarterly budget projection model. Cell B2 holds the starting revenue. Cells B3 through B5 hold growth rate assumptions.

Cells B7 through B20 are calculated outputs โ€” projected revenue by month, operating costs, net income, and so on. You want a colleague to be able to change the inputs in B2:B5 and see the outputs update. But you don't want them touching the formulas in B7:B20 or accidentally typing over the headers.

Here's the sequence. Open your model. Select cells B2 through B5 โ€” these are your input cells. Press Ctrl+1. Go to the Protection tab. Uncheck Locked. Click OK. Now go to the Review tab and click Protect Sheet.

Set a password โ€” let's say BudgetQ4_2026! โ€” and confirm it. Leave the default permissions (select locked, select unlocked). Click OK. Test it. Click cell B2 and type a new revenue figure. It accepts. The formulas in B7:B20 recalculate automatically.

Now click B10 and try to type. Excel pops an error: the cell is protected. Save the file. You've just shipped a foolproof template. The same pattern works for any document where some fields are user-editable and others are formula-driven.

Building a Locked Financial Template

wrench

Construct your spreadsheet with inputs, formulas, and outputs in their final layout.

target

Mark every cell where the user is expected to enter data โ€” revenue, costs, dates, assumptions.

calculator

Note every cell that's calculated from inputs or contains static labels and formatting.

mouse

Highlight the input cells using click or Ctrl+click for non-adjacent ranges.

unlock

Press Ctrl+1, go to Protection tab, uncheck Locked, click OK.

lock

Review tab > Protect Sheet > optional password > choose permissions > OK.

check

Click input cells โ€” should accept typing. Click output cells โ€” should show error.

share

Send the file to users. Locked cells stay locked through email, OneDrive, and SharePoint.

What about hiding the formulas themselves? Sometimes you don't just want to prevent edits โ€” you want to hide the logic. Maybe you've built a pricing model and you don't want competitors or customers seeing the exact formula behind your quote.

Excel can hide formulas from the formula bar while still showing the calculated result in the cell. Here's how. Select the cells containing formulas you want to hide. Press Ctrl+1. Go to the Protection tab. You'll see two checkboxes: Locked and Hidden. Check both. Click OK.

Then protect the sheet as usual. Now when somebody clicks on one of those cells, the formula bar shows nothing. The cell still displays its calculated value, but the formula itself is invisible. Like sheet passwords, this is a deterrent, not a security feature.

Anyone determined can unprotect the sheet and reveal the formulas. But for casual sharing it works fine. If you've ever needed a quick reference for which formulas to protect, our Excel formulas cheat sheet covers the most common ones worth hiding in client-facing templates.

Excel Certification Practice Test

Now let's talk about real security. Sheet and workbook protection are about preventing accidents and casual snooping. They're not designed to stop a determined attacker.

If you're dealing with truly sensitive data โ€” financials before earnings, personal health information, legal documents, anything regulated โ€” you need file-level encryption. Excel uses AES-256, which is the same encryption standard the US government uses for classified data up to TOP SECRET.

It's effectively unbreakable with current technology. The catch is that the password is required just to open the file. Lose the password and the data is gone. To encrypt a workbook, click File, then Info, then click the Protect Workbook button (it's a yellow shield icon), and choose Encrypt with Password.

A small dialog appears. Type your password. Click OK. Type it again to confirm. Click OK. Save the file. Now when anybody โ€” including you โ€” tries to open it, Excel asks for the password before showing any content.

The encryption applies to the entire file, including embedded macros, hidden sheets, and metadata. There's no way around it. This is the gold standard for confidentiality. Just remember to store the password somewhere safe before you close the file, because there is literally no recovery mechanism.

There's also a middle-ground option: read-only protection at save time. Click File, Save As, then click the Tools dropdown next to the Save button and choose General Options. You'll see two password fields: one to open the file, one to modify it. The modify password lets users open the file in read-only mode without a password. It requires the password to save changes back. Useful for sharing reference documents.

Sheet Protection vs File Encryption

Pros

  • Sheet protection is fast to set up and easy to remove when needed
  • Sheet protection lets you keep specific cells editable for templates
  • Sheet protection prevents accidents from casual users effectively
  • Sheet protection works with collaboration tools like OneDrive co-authoring
  • File encryption uses AES-256 โ€” actually secure against attackers
  • File encryption protects the entire file including macros and hidden data
  • File encryption requires password before any content is visible

Cons

  • Sheet passwords are trivially cracked by free online tools
  • Sheet protection does not hide the file from anyone with access
  • Sheet protection can be bypassed by copying cells to a new workbook
  • File encryption has no recovery โ€” lose the password, lose the data
  • File encryption can slow down opening very large workbooks
  • File encryption is incompatible with some older Excel viewers
  • Combining multiple protection types adds password management overhead

Let's clear up some common mistakes that frustrate new users. The first one we've already mentioned: forgetting that cells are locked by default. You protect a sheet, get frustrated that nothing is editable, and assume Excel is broken. It's not โ€” you just need to unlock the cells you want editable before protecting.

Second mistake: setting a password and not writing it down. Sheet passwords can usually be recovered with third-party tools. But file encryption passwords cannot. Always store passwords in a password manager or a physical notebook.

Third: over-protecting. You lock everything, and then your users complain they can't even sort the table or expand a column. Go back to the Protect Sheet dialog and check the permissions you want to grant โ€” sort, AutoFilter, and format cells are usually safe to allow.

If you need to unprotect specific cells later, see our walkthrough on how to lock a cell in Excel for the inverse operation. Fourth mistake: under-protecting. You unlock the input cells, but forget to lock the output formulas. Users overwrite the calculations.

Always test your template before distributing. Click every cell that should be locked and confirm it throws an error. Click every cell that should be editable and confirm you can type in it. Fifth: trusting sheet passwords as security. They are not security.

If somebody emails you a protected workbook and tells you the data inside is confidential because of the password, they have a false sense of security. For confidentiality, you need file encryption, period. There's no shortcut around this. The two protection systems serve different goals and you should pick based on what you actually need.

Platform and Format Differences

๐Ÿ“‹ Mac vs Windows

The menu paths are virtually identical between Excel for Mac and Excel for Windows. The main difference is keyboard shortcuts. On Windows you press Ctrl+1 to open Format Cells. On Mac you press Cmd+1. Other shortcuts follow the same pattern โ€” replace Ctrl with Cmd. Both platforms support sheet protection, workbook protection, and file encryption with AES-256. The dialogs look slightly different but the options are the same. Passwords created on one platform work on the other โ€” protection is stored in the file format, not the application.

Excel for Mac 2019 and later versions have full feature parity with Windows for protection. Older Mac versions (2011, 2016) had some limitations with file encryption that have since been resolved. If you're sharing protected files across platforms, save in .xlsx format for maximum compatibility. Avoid .xls (the legacy binary format) because its protection is significantly weaker than the modern format.

๐Ÿ“‹ Excel for Web

The online version of Excel through Microsoft 365 supports basic sheet and workbook protection. You can apply Protect Sheet and Protect Workbook from the Review tab in the browser. You can also remove protection if you have the password. However, some advanced features require desktop Excel. File-level encryption can only be applied from the desktop app, although encrypted files can be opened in the browser if you supply the password. Hidden formulas (the Hidden checkbox in Format Cells) are also limited online.

Co-authoring works with protected sheets. Multiple users can edit unlocked cells in real time, but locked cells remain locked for everyone. This makes Excel for Web particularly useful for distributed teams filling out a shared template. The version history feature lets you revert if somebody manages to break something they shouldn't have.

๐Ÿ“‹ Mobile Apps

The iOS and Android Excel apps support viewing protected files and respect cell-level locks. You can fill in unlocked cells from your phone or tablet, which is useful for field workers updating inventory or sales reps logging visits. However, setting up protection from a mobile device is limited. To apply Protect Sheet or unlock specific cells, use the desktop or web version. The mobile apps are primarily consumption tools for protected files, not authoring tools for setting up protection.

If you encrypt a file with a password to open, mobile users will be prompted for the password the same way desktop users are. AES-256 encryption works identically across all platforms. Just be aware that typing long secure passwords on a phone keyboard is annoying, so factor that into how you distribute encrypted files.

FREE Excel MCQ Questions and Answers

For advanced users, Excel also supports protection through VBA macros. This is significantly more flexible than the built-in dialog approach. With VBA you can protect a sheet automatically when the workbook opens. Customize the error message users see when they try to edit a locked cell.

Programmatically unlock specific cells based on user identity. Even integrate with external authentication systems. The downside is that VBA requires actual coding knowledge. Macros must be enabled โ€” which many corporate environments restrict by default.

The simplest VBA protection looks like this: Worksheets("Sheet1").Protect Password:="mypass". You put that line in the Workbook_Open event handler. The sheet gets protected every time the file is opened. Even if somebody managed to unprotect it during a previous session.

You can pass additional parameters to control permissions: AllowSorting:=True, AllowFiltering:=True, AllowFormattingCells:=False. The full list of parameters matches the checkboxes in the Protect Sheet dialog. For really sensitive workbooks, some developers obfuscate the VBA project itself with another password, adding a third layer.

Just remember that none of this is real cryptographic security โ€” it's protection in depth, designed to defeat casual tampering, not determined attackers. If you need genuine security, encrypt the file. If you need flexibility and automation, VBA gets you there.

Excel Protection Quick Facts

AES-256
Encryption used for file-level password
0 seconds
Time to crack a sheet password with free tools
All cells
Default state โ€” locked but inactive
15 permissions
Options in Protect Sheet dialog
2 steps
Unlock cells, then protect sheet
No recovery
If you forget the encryption password

Let's wrap up with the bottom line. To lock an Excel sheet, the answer depends on what you're protecting against. For preventing accidents in a template, use Review > Protect Sheet. Optionally unlock specific input cells first via Ctrl+1 > Protection > Locked.

For protecting the structure of a multi-sheet workbook, use Review > Protect Workbook. For genuinely confidential data, use File > Info > Encrypt with Password โ€” that's the only protection that actually keeps data private. Combine these as needed.

A typical pattern for a finished template is encryption on the file, workbook structure protection, and sheet protection with specific input cells unlocked. Always test what users can and cannot do before sharing. Click around the way a user would. Try to break things.

If you set a password, store it in a password manager. Remember that sheet passwords are not security, only deterrence. Remember that encryption passwords cannot be recovered. With these basics you can ship protected templates with confidence.

Excel protection isn't complicated once you understand the two-step model โ€” unlock specific cells, then protect the sheet โ€” and once you know which scenarios call for which level of protection. Practice on a throwaway workbook before applying any of this to your real data, and you'll never accidentally lock yourself out of your own files.

FREE Excel Basic and Advance Questions and Answers

Lock Excel Sheet Questions and Answers

How do I lock an Excel sheet so nobody can edit it?

Go to the Review tab, click Protect Sheet, optionally enter a password, and click OK. Every cell is locked by default, so the entire sheet becomes read-only with no further setup. To remove protection later, click Unprotect Sheet on the Review tab and enter the password if you set one.

Why is my whole sheet locked when I only wanted to protect one cell?

Because Excel marks every cell as locked by default. The lock only activates when you protect the sheet. To keep some cells editable, select them first, press Ctrl+1, go to the Protection tab, uncheck Locked, click OK, and then protect the sheet. Only the unchecked cells will be editable.

Are Excel passwords secure?

Sheet and workbook passwords are not real security โ€” free online tools can strip them in seconds. They are deterrents against casual editing. For genuine confidentiality, use File > Info > Encrypt with Password, which applies AES-256 encryption and is effectively unbreakable. Just remember there is no recovery if you lose an encryption password.

What is the difference between Protect Sheet and Protect Workbook?

Protect Sheet prevents users from editing cell contents within a specific worksheet. Protect Workbook prevents users from changing the structure of the workbook โ€” adding, deleting, renaming, moving, or hiding sheets. They serve different purposes and are commonly used together for full template protection.

Can I hide formulas in Excel while keeping the results visible?

Yes. Select the cells with formulas, press Ctrl+1, go to the Protection tab, and check both Locked and Hidden. Then protect the sheet via Review > Protect Sheet. The cells will continue to show their calculated values, but the formula bar will be empty when you click them. This is a deterrent, not real security.

How do I remove sheet protection if I forgot the password?

Excel has no built-in recovery option for sheet passwords, but third-party tools and VBA scripts can usually strip the protection in seconds because the encryption is weak. For file-level encryption passwords, however, there is no recovery โ€” AES-256 has no backdoor. Always store encryption passwords in a password manager before saving.

Does sheet protection work in Excel for the web and mobile apps?

Yes. Excel for the web supports applying and removing sheet and workbook protection from the Review tab. Mobile apps respect existing locks but have limited authoring features for setting up protection. File-level encryption with password to open works across all platforms โ€” desktop, web, and mobile โ€” using the same AES-256 standard.
โ–ถ Start Quiz