Locking cells in a spreadsheet

Excel 365 2016 2010 2007 2003
Sometimes you might want to lock cells in your Excel spreadsheet that contain formulas and functions or data. Thus, the person doing the data entry will not accidentally overwrite or delete the spreadsheet formulas and functions or your data.

However, if you forgot the password, you won't be able to edit the locked cells. Tools like PassFab can recover simple passwords if needed.

Locking cells in an Excel spreadsheet is a two-step process. By default all cells are locked. You must first select and unlock the cells. Then, you must turn on protection on the entire spreadsheet for the "lock" to go into effect.

Follow these steps to unlock cells on a spreadsheet:

   1.   Select the cells in the spreadsheet that you want to unlock.

   2.   On the Home tab, in the Cells group, click Format, and then click Format Cells...:

Cells group in Excel 2013

   3.   On the Protection tab, clear the Locked check box, and then click OK.

Format cells in Excel 2013

   4.   Now you must protect the entire spreadsheet to have the lock feature protect the cells. On the Review tab, in the Changes group, click Protect Sheet:

Changes group in Excel 2013

   5.   Enter a password if you want to require a password for "unprotecting" the spreadsheet.

Protect sheet in Excel 2013

See also Protect Excel spreadsheet options.

   6.   Click OK.

Note: You can easily move between unprotected cells on a locked sheet by pressing the Tab key.

If you have any questions or suggestions, please feel free to ask OfficeToolTips team.

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information you’ve provided to them or they’ve collected from your use of their services.

Learn more