How do you protect a worksheet or specific cells in Excel?

Protecting a worksheet or specific cells in Excel ensures that users can only make changes where you want them to, preventing accidental or unauthorized modifications. Here’s how to do it:

Protecting an Entire Worksheet
  1. Open the Worksheet :
    • Go to the worksheet you want to protect.
  2. Access the Protect Sheet Option :
    • Click on the Review tab in the Ribbon.
    • Select Protect Sheet.
  3. Configure Protection Settings :
    • In the dialog box that appears, you can:
      • Enter a password (optional) : This password will be required to unprotect the sheet later.
      • Select allowed actions : Choose what users can or cannot do (e.g., select locked cells, format cells, insert rows, etc.).
  4. Apply Protection :
    • Click OK. If you set a password, you will be prompted to confirm it.

Protecting Specific Cells :

By default, every cell in an Excel worksheet is locked—but this lock only takes effect once the worksheet is protected. To protect only certain cells:

  1. Unlock Cells You Want Editable :
    • Select the cells that should remain editable.
    • Right-click and choose Format Cells.
    • Go to the Protection tab.
    • Uncheck Locked and click OK.
  2. Protect the Worksheet :
    • Now follow the steps above to protect the worksheet (via the Review tab → Protect Sheet).
    • Only the cells that remain locked will be protected, while the unlocked cells can be edited by users.