How to Lock & Unlock an Excel Spreadsheet

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Use a password to protect a locked worksheet from editing.
Image Credit: Screenshot courtesy of Microsoft.

Locking a worksheet in Excel 2013 gives you the freedom to share the file with someone, without worrying about that person making unwanted changes to the data or its formatting. Because you can customize the protection for any worksheet, it's important to review what the user can and cannot do once its locked. The options you leave unlocked for the user range from the ability to edit PivotCharts to the ability to click and select a cell.

Advertisement

If the Excel file contains more than one worksheet, you may want to consider locking the entire Excel workbook.

Video of the Day

Video of the Day

Step 1

Click "Protect Sheet."
Image Credit: Screenshot courtesy of Microsoft.

Select the Excel worksheet you want to lock. Select the "Review" tab and click the "Protect Sheet" icon in the Ribbon's Changes section.

Advertisement

Step 2

By default, users can select locked and unlocked cells in a protected worksheet.
Image Credit: Screenshot courtesy of Microsoft.

Scroll through the list of options and choose those that you don't want locked. Any item without a check mark beside it will be locked. Options with check marks are unlocked.

Advertisement

The first two items are checked by default, allowing anyone opening the worksheet to select both locked and locked cells. Clear either of these check boxes if you don't want anyone be able to select these cells.

Advertisement

Step 3

"Format Cells," "Format Columns" and "Format Rows" are selected.
Image Credit: Screenshot courtesy of Microsoft.

Click the "Format Cells," "Format Columns" and "Format Rows" check boxes if you want users to be able to change the formatting, like the font or background colors. Note that if you applied conditional formatting to the worksheet, the formatting will still change if someone changes a value in a cell, even if the formatting options are locked.

Advertisement

Step 4

Options for allowing users to insert or delete rows, columns and hyperlinks.
Image Credit: Screenshot courtesy of Microsoft.

Specify if you want the user to be able to insert and delete rows or columns in the worksheet. There is also an option to allow the user to insert hyperlinks into the worksheet, like creating a link to another worksheet or a Web page within one of the cells.

Advertisement

Advertisement

Step 5

Check marks unlock the last five options in this example.
Image Credit: Screenshot courtesy of Microsoft.

Click the "Sort" check box if you want users to be able to sort data using the Sort & Filter group options under the Data tab. This won't allow them to sort ranges on any locked cells on a protected worksheet.

Advertisement

Select "AutoFilter" if you want users to be able to change filter ranges on AutoFilters you have already applied to the worksheet. Note that users can't add or remove AutoFilters on any protected worksheet, regardless of the options that have been unlocked.

Select the "Use PivotTable & PivotChart" option to allow users to create or change PivotTables and PivotCharts.

Advertisement

Unlock the "Edit Objects" option to allow users to change graphics like charts, maps, shapes and text boxes. This option also needs to be unlocked for users to interact with PivotCharts.

Advertisement

Click the "Edit Scenarios" option to allow users to look at hidden scenarios, or to edit and delete scenarios. Values in changing cells can only be edited if the cells aren't protected.

Advertisement

Step 6

Enter a password and click "OK."
Image Credit: Screenshot courtesy of Microsoft.

Type a password in the "Password" field and click "OK." Enter the password again in the confirmation window that opens. You will need to enter this password in order to unlock the worksheet.

Advertisement

Step 7

Click "Unprotect Sheet."
Image Credit: Screenshot courtesy of Microsoft.

Click the "Review" tab above the worksheet at any time and click "UnProtect Sheet." This prompts you to enter the password you selected. Once the worksheet is unprotected, you can edit the worksheet as usual.

Advertisement

Advertisement

references