- The Excel default that makes locking cells confusing
- Locking specific cells in Excel for Windows
- Locking every cell on an Excel sheet
- Locked cells in Excel for the web and on a Mac
- Do you need a password to lock cells in Excel?
- What locking cells in Excel won't do
- Locking cells in Excel for shared business templates
- If your locked cells in Excel can still be edited
- Frequently asked questions
To lock formulas in Excel, leave the formula cells locked, unlock the cells people fill in, then protect the worksheet. On Windows, choose Review and Protect Sheet. In Excel for the web, choose Review and Manage Protection.
Think of an order form with a quantity box beside a calculated total. The person filling it in needs to type a quantity and see the total change. They should never have to touch the total itself.
If you share a quote calculator with a virtual assistant, or a booking tracker with a client, this is the trick that stops someone wiping out a formula by accident. Here's how it works, using Microsoft's own steps.
The Excel default that makes locking cells confusing
Microsoft says that by default, every cell on a sheet is already formatted as locked. That surprises people. It means that if you simply switch on sheet protection, the whole sheet freezes, including the boxes you wanted others to fill in.
So the real job usually runs backwards from how you'd expect. You clear the Locked setting on the input cells first, leave the formula cells locked, and then protect the sheet. Microsoft advises exactly that: free up any cells people need to change before you protect the sheet.
Locking specific cells in Excel for Windows
Here's the order I'd follow for a typical form or tracker where you want people to type in some boxes but not others.
- Select the cells people will fill in. Hold Ctrl and click to include input boxes that sit apart, leaving headings and formulas outside the selection.
- Right-click the selection and choose Format Cells. On the Protection tab, clear Locked.
- Go to Review and choose Protect Sheet. Decide what users can select or change. Leave Select unlocked cells available so people can move between the input boxes with Tab.
- If you want a password for removing protection, enter it and confirm it. Otherwise leave it blank. Select OK and try the form before sharing it.
Colour the editable boxes before protecting the form. Colour is a cue for the person typing. It doesn't change the lock. If the file already exists, check that somebody hasn't unlocked an entire column, including the total at its foot.
For a stock sheet, put the number of cartons in B2, items per carton in C2 and the formula =B2*C2 in D2. Unlock B2 and C2. Leave D2 locked. In a test copy, enter three cartons of six. The total should read 18. Change the carton count to four and the total should become 24. Now try typing directly over the total. Excel should refuse the edit.
Locking every cell on an Excel sheet
Sometimes you want the opposite: a finished report nobody should touch. Because every cell starts out locked, you can skip straight to the protection step. Go to Review, select Protect Sheet, set a password if you want, and select OK. That's it.
If you want to stop people adding, renaming or hiding tabs as well, protect the workbook structure as a separate step. It locks the structure of the file rather than the cells. Locking the whole file behind a password is a separate job, so read how to password protect an Excel file before you set one.
Locked cells in Excel for the web and on a Mac
In the browser, open Review and choose Manage Protection. Switch on Protect sheet. Under Unlocked ranges, give the input area a recognisable name and enter its cell range. In the stock example, use B2:C2 for the inputs. Keep D2 outside that range. Microsoft documents both interfaces in its worksheet protection guide.
Give separate input areas names that describe the work, such as Deliveries and Returns. That makes a later change easier to check. If somebody adds a returns box below the original area, update that range and try the new box before sending the sheet back.
On a Mac, select the input cells and press Command+1 to open Format Cells. Clear Locked on the Protection tab for those inputs, then protect the worksheet. Use the same quantity-and-total test before sharing the file.
Do you need a password to lock cells in Excel?
No. Microsoft says the password is optional. Without one, though, anyone can unprotect the sheet and change what you locked. Here's how I'd decide:
| Situation | Password? |
|---|---|
| Your own template that you don't want to break by accident | Usually not needed |
| A tracker shared with a team or freelancer | Worth adding |
| A client-facing form where formulas must stay put | Add one and store it safely |
Keep the password where the person maintaining the workbook can retrieve it. Microsoft says it cannot recover a forgotten worksheet password. If the owner has the password and needs to change the form, follow the steps to unprotect an Excel sheet, make the change and protect the sheet again.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
What locking cells in Excel won't do
Microsoft is very clear that worksheet-level protection isn't intended as a security feature. It stops people changing locked cells within the sheet, and that's all. It doesn't hide the data or stop anyone reading it.
Before sharing a client copy, open it and read it as a recipient would. Can you see another client's rates, names or notes? Locking those cells still leaves their contents in the file. Put only the information this recipient should see in their copy.
For an internal order form, keep a blank master with the formulas intact. If the order layout changes, edit the master, then run a sample order through the revised sheet. That gives you a clean starting point the next time someone pastes last month's figures into the wrong place.
Locking cells in Excel for shared business templates
Start with a blank copy and mark every place the next person needs to type. Include corrections and late entries as well as the obvious blanks. A booking tracker that accepts a new booking but won't let anyone change the arrival date is still a broken form.
- Content calendars where your team fills in dates and titles, but the status formulas stay fixed.
- Order or stock sheets where a helper enters quantities and the totals can't be overwritten.
- Client onboarding forms where only the answer column is open.
If your team mixes Excel with Google, the browser version has its own tools. My guide to putting tick boxes in Google Sheets is handy for a shared to-do list, and the SUM steps for Google Sheets cover the totals you'd usually want to lock.
If your locked cells in Excel can still be edited
Clicking a cell and editing it are different tests. A colleague may be able to highlight a formula and read it even though Excel refuses to replace it. Test by typing in a disposable copy before changing the permissions.
If the complaint is about sorting, look at the full range being sorted. Microsoft says a range containing locked cells can't be sorted even if Sort is allowed. Keep your calculation cells protected and decide whether the team needs a separate view for sorting.
For an unexpected edit, check the following in order.
- Is the sheet protected? Look on the Review tab. If you see Protect Sheet rather than Unprotect Sheet, the lock isn't switched on yet.
- Are you on the right tab? Protection is set for each sheet separately.
- Did you tick Locked on the right cells? Reopen Format Cells on one of them and check the Protection tab.
- In the browser, look at Manage Protection. Does an unlocked range include a formula by mistake? If protection was paused for your session, use Resume Protection before testing again.
Frequently asked questions
Why can I still edit cells I locked in Excel?
Locking only takes effect once the sheet is protected. Go to the Review tab and select Protect Sheet, and the locked cells will stop accepting changes.
Are all cells locked in Excel by default?
Yes. Microsoft says every cell is formatted as locked by default, which is why you should untick Locked on the input cells before protecting the sheet.
Can I lock cells in Excel for the web?
Yes. Under Review, open Manage Protection and turn on Protect sheet. Add only the cells people should edit to Unlocked ranges.
Do I need a password to lock cells?
No, it's optional. Without one, anyone can unprotect the sheet and change the locked cells, so add one for shared files.
Is locking cells a way to keep data private?
No. Microsoft says worksheet protection isn't intended as a security feature. It stops changes to locked cells but doesn't hide anything.
