30 Advanced Excel Tips for 2026

Excel Champs / Excel Keyboard Shortcuts / Lock Cells (Excel Shortcut)
By Puneet Gogia (Microsoft MVP)

Lock Cells (Excel Shortcut)

Every cell is locked by default, but locking does nothing until you protect the sheet. To leave some cells editable, select them, press Ctrl + 1, go to the Protection tab, untick Locked and press Enter. Then press Alt, R, P, S (Review → Protect Sheet), add a password if you want one and press Enter.

To lock only a few cells instead, reverse it: select the whole sheet (Ctrl + A, twice if you are inside a data range) and untick Locked, then select the cells to lock, tick Locked again and protect the sheet.

Inside the dialog, Ctrl + Tab moves through the tabs to Protection. To skip the dialog, Alt, H, O, L toggles Home → Format → Lock Cell for the selection and Alt, H, O, P opens Protect Sheet. The old Excel 2003 menu sequence Alt, T, P, P also opens Protect Sheet. These keys are for Excel on Windows; Mac shortcuts differ.

If you meant locking a cell reference inside a formula, that is a different job: put the cursor on the reference and press F4 to turn A1 into $A$1. Press it again to cycle through A$1, $A1 and back to A1.

If people can still type anywhere, the sheet isn’t protected yet. If they can’t edit the cells you meant to leave open, those cells were still ticked as Locked when you protected the sheet; unprotect it (Review → Unprotect Sheet), untick them and protect it again.

Latest Video Tutorial – 10 Excel Keyboard Shortcuts (Probably YOU are NOT Using)

Sometimes you want only a few cells in the worksheet to be editable for the users, and all the other cells to be protected from editing.

For this, you have to use the lock cells option, so that users can only edit, add, replace or remove the values in the editable cells, and your locked cells remain protected.

Keyboard Shortcut to Lock Cells in Excel

There is no direct keyboard shortcut to lock the cells, but you can use a combination of two shortcuts to lock the cells, as mentioned below:

Ctrl + 1 

Alt → T → P → P

Steps to Lock Specific Cells or Range Using Keyboard Shortcut

  1. First, select the cells or range of cells that you want to keep editable for the users.
    range-needs-to-be-editable-only
  2. After that, press the “Ctrl + 1” keys together, and you will get the “Format Cells” dialog box opened.
  3. Now, press “Ctrl + Tab” until you reach the “Protection” tab, then press “Tab” until the “Locked” box is selected, press the “Spacebar” to untick it, and press “Enter”.
    format-cells-dialog-box
  4. In the end, press “Alt → T → P → P” to open the “Protect Sheet” dialog box, enter the password (optional), and press “Enter”.
    password-to-unprotect-sheet
  5. At this moment, your sheet is protected except for the selected cells, and users can now edit, add and replace values only in those editable cells, while the other cells stay protected.

Why All Cells Are Locked by Default

In Excel, every cell has the Locked option ticked by default, but locking has no effect until you protect the sheet. That’s why you untick Locked for the cells that should stay editable, and then protect the sheet. To lock only a few cells instead, select all the cells (Ctrl + A), untick Locked, then select the cells to lock, tick Locked again, and protect the sheet.

Other Ways to Protect the Sheet

  • Ribbon keys: Alt → R → P → S opens Review ➜ Protect Sheet (the same dialog box as Alt → T → P → P).
  • Unprotect: use the same keys, Alt → T → P → P or Alt → R → P → S, and enter the password if you set one.
  • Hide formulas: on the same Protection tab, tick Hidden for cells with formulas so the formula bar doesn’t show them once the sheet is protected.
  • Mac: use Command + 1 ➜ Protection, then Review ➜ Protect Sheet.

Frequently Asked Questions

Why can I still edit locked cells?

The sheet isn’t protected yet. Locked only works after you protect the sheet with Review ➜ Protect Sheet.

Can I lock cells without a password?

Yes. The password in the Protect Sheet dialog box is optional, but then anyone can unprotect the sheet from the Review tab.

Can users still sort or filter a protected sheet?

Only if you tick those options (like Sort and Use AutoFilter) in the Protect Sheet dialog box, and sorting also needs the cells to be unlocked.

Leave a Comment