Lock and unlock cells in Google Sheets

Prevent accidental edits by restricting who can change a specific range of cells in Google Sheets using the Protect Sheets and Ranges sidebar.

What the video covers

Restrict or allow editing for one or more cell ranges in a Google Sheets document using the Protect Sheets and Ranges feature.

Watch the video on YouTube

Step-by-step instructions

  1. Select the cells to protect
    Highlight the single cell or range you want to lock.
  2. Open protection controls
    From the menu, choose the option to protect sheets and ranges to open the Protect Sheets and Ranges sidebar.
  3. Create a protection entry
    In the sidebar, add a new protection for the selected range (or choose to protect an entire sheet if needed).
  4. Set editing permissions
    Use the Set Permissions option in the sidebar and choose to restrict who can edit this range.
  5. Choose allowed editors
    Select or enter which collaborators are allowed to edit the protected range; everyone else will be blocked from making changes.
  6. Unlock or adjust protections when needed
    To allow edits later, return to the Protect Sheets and Ranges sidebar, locate the protection entry, and modify or remove the permissions.

Watch the video

Video thumbnail for Lock and unlock cells in Google Sheets Play tutorial

Watch on YouTube

Why it matters

Use cell protection to prevent accidental or unauthorized changes to important data while allowing specific collaborators to edit when needed.

Check your result

Try editing a protected cell while signed in as a user who should be blocked (or view protections in the sidebar). Protected ranges should prevent edits for users who are not permitted.

Troubleshooting

If you can’t set or remove protections, you may not have sufficient access—only editors with appropriate rights or the file owner can change protections. To remove a protection, open the Protect Sheets and Ranges sidebar and delete the protection entry. If collaborators still can edit, confirm they are not listed as allowed editors and that they are signed into the correct account.