logo
search
Office Settings & Configuration

How to Protect and Lock Cells in Excel for Microsoft 365

Nimra MalikNimra Malik Sep 27, 2026 873 views

Question details

Users cannot find the option to protect or lock cells in Excel for Microsoft 365 because they are using the web version.

How to Protect and Lock Cells in Excel for Microsoft 365
Product
Excel for Microsoft 365
Device & OS
not provided
Scenario
Attempting to secure specific data or formulas from being edited in an online workbook.
Observed behavior
The cell locking and worksheet protection options are missing or completely unavailable in the Excel for the Web interface.
Before you start

Ensure you have the Microsoft Excel desktop application installed, as full cell locking and worksheet protection features are currently unsupported in the web version.

Solution 1Recommended

Open in Desktop App and Apply Cell Locking

Since Excel for the web lacks protection features, you must open the workbook in the desktop version to lock cells and protect the sheet.

By default, all cells in Excel are locked, but this locking has no effect until you protect the worksheet. You must switch to the desktop application to adjust these settings and enforce the protection.

1
Open Desktop App

Open your file in Excel for the web, click on the 'Editing' button on the top ribbon, and select 'Open in Desktop App'.

2
Format Unlocked Cells

In the desktop app, select the cells you want to leave unlocked (editable for other users), right-click them, and choose 'Format Cells'.

3
Adjust Protection Settings

Navigate to the 'Protection' tab in the Format Cells dialog box, uncheck the 'Locked' box, and click 'OK'.

4
Protect the Worksheet

Go to the 'Review' tab on the main ribbon and click on 'Protect Sheet'.

5
Set Password and Confirm

Enter a password if desired, specify what actions users are allowed to perform, and click 'OK' to secure the document.

Open in Desktop App and Apply Cell Locking
Web Compatibility: Once you apply protection in the desktop app, the workbook will remain protected when viewed or shared in Excel for the Web, even though you cannot configure it directly from the browser.
Secure Your Spreadsheets Easily

Use WPS Spreadsheet to Lock and Protect Cells

WPS Office provides a fully featured desktop spreadsheet application for free. You can easily lock cells, protect sheets, and encrypt whole workbooks with a familiar interface and seamless format compatibility.

  1. 1. Open Document: Open your spreadsheet file in WPS Office.
  2. 2. Unlock Specific Cells: Select the cells you want to remain editable, right-click, select 'Format Cells', and uncheck 'Locked' under the Protection tab.
  3. 3. Protect Sheet: Navigate to the 'Review' tab on the ribbon and click 'Protect Sheet'.
  4. 4. Set Password: Enter a secure password, check the permissions you want to allow, and click 'OK' to secure your data.
Easily lock specific cells and protect worksheets with passwords.Fully compatible with Microsoft Excel (.xlsx) formats, ensuring your protection settings carry over.Free, lightweight, and works flawlessly offline on Windows, Mac, and Linux.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the 'Protect Sheet' button missing in my Excel?

If you are using Excel for the Web (the browser version), the worksheet protection features are not available. You must open the workbook in the Excel desktop application to access these tools.

Does cell protection work if I share the file online?

Yes. If you protect the worksheet using the desktop version of Excel, the protection rules and locked cells will remain active and enforced when other users open the file in Excel for the Web.

How do I unlock cells after protecting a sheet?

You must first unprotect the sheet. Go to the 'Review' tab and click 'Unprotect Sheet' (you will need to enter the password if one was set). Then, you can select the cells, right-click, choose 'Format Cells', and change the 'Locked' status.