How to Lock All Cells in an Excel Worksheet
When you have crucial data in Excel, you might want to prevent changes to keep it accurate. A good method is to protect your entire worksheet. This lock cells in excel, stopping editing, deletion, or reformatting.
- How to Lock All Cells in an Excel Worksheet
 - How to Lock Specific Cells
 - Unlock Specific Cells Based on Color
 - 1. Open Find and Replace
 - 2. Find Cells by Color
 - 3. Select All Cells
 - 4. Adjust for Missing Cells
 - 5. Deselect Unwanted Cells
 - 6. Unlock the Selected Cells
 - Lock Only Cells with Formulas
 
Steps to Lock Your Worksheet
1. Open the Review Tab
At the top of your Excel window, click on the Review tab. This is where youâll find options to protect your sheet.
2. Choose âProtect Sheetâ
Click on Protect Sheet. Youâll have the option to set a password (optional).
This way, only those with the password can unlock and make changes to the sheet.
You can also decide what other users are allowed to do, like selecting or viewing cells.

3. Confirm Protection
After choosing your settings, click OK. Your worksheet is now locked! If someone tries to edit a locked cell, theyâll get a message telling them itâs protected.

How to Unlock Your Worksheet
Need to make changes? Go back to the Review tab, click Unprotect Sheet, and enter your password if youâve set one.

How to Lock Specific Cells
In other cases, you may need to protect only specific cells. This prevents changes while allowing edits to others.
For example, in a budget spreadsheet, you might allow changes to the expense values. But, you would not allow changes to the categories or the formulas that calculate the totals.
Hereâs a simple way to lock only specific cells in your worksheet:
Step 1: Set Cell Protection Status
First, decide which cells you want to remain editable. By default, all cells in Excel are âlocked,â but that doesnât take effect until sheet protection is activated.
- Select the cell or cells you want to keep editable.
 - Right-click, and select âFormat Cellsâ:
 

- Go to the âProtectionâ tab, uncheck the âLockedâ box, and then click âOKâ.
 

đĄPro Tip: If you see a mixed checkbox in the Locked option, it means some of your selected cells are already locked while others are not.

Step 2: Activate Sheet Protection
Now, itâs time to lock the specific cells.
- Go to the âReviewâ tab and select âProtect Sheetâ under the âProtectâ group.
 

- You can set a password to ensure only authorized users can unlock the sheet (this step is optional).
 

- Click OK to activate protection.
 
Once done, only the cells you didnât unlock can be edited.
Locking Columns and Rows
You can also lock entire columns or rows using the same steps:
- To lock a column: Select the column header, right-click, and choose Format Cells. Under the Protection tab, make sure the Locked box is checked. Then, activate sheet protection as before.
 - To lock a row: Follow the same steps but select the row header instead.
 
â Remember, locking the cells only takes effect after you activate sheet protection.
Unlock Specific Cells Based on Color
In this example, our goal is to keep all blue cells accessible for input. Manually selecting all these cells can be tedious and time-consuming.

Instead, weâll utilize Excelâs built-in features to automatically identify and select all the blue cells for us.

1. Open Find and Replace
Press Ctrl + F to open the âFind and Replaceâ dialog box. While this tool is usually for finding text, it can also locate cells based on their format, including color.

2. Find Cells by Color
- Click the small arrow next to the âFormatâŠâ button and choose âChoose Format From CellâŠâ.
 

- Your cursor will change to a pointer with an eyedropper. Click on a cell with the blue color you want to find.
 

- Then, click âFind Allâ in the dialog box.
 

3. Select All Cells
Once the cells are listed, click on any reference in the list and press Ctrl + A to select all the found cells at once.

4. Adjust for Missing Cells
If some cells are missing from the selection, it may be due to different formatting.
- To search by color only, go back to âFormatâŠâ in the âFind and Replaceâ dialog, select the âFillâ tab, choose the appropriate color, and click âOKâ.
 - Then click âFind Allâ again.
 

5. Deselect Unwanted Cells
If there are cells selected that you donât want to unlock, hold Ctrl and click on them to remove them from the selection.
6. Unlock the Selected Cells
- With the cells selected, press Ctrl + 1 to open the âFormat Cellsâ dialog.
 - Go to the âProtectionâ tab and uncheck âLockedâ.
 - Click OK, and your selected cells will now be unlocked while the rest of the worksheet remains protected.
 

đĄÂ Pro Tip: If youâve previously searched using Find and Replace, it might retain those settings. Before starting a new search, click the arrow next to the Format⊠button and select Clear Find Format to reset the search parameters.

Lock Only Cells with Formulas
Protecting formula cells in your spreadsheet is crucial. It maintains the integrity of your calculations and prevents accidental changes.
Locking these cells ensures they stay intact, even when the rest of the sheet is editable. Follow this easy guide to lock only your formula cells while keeping everything else accessible.
1. Unlock All Cells First
Excel locks all cells by default when you protect a sheet. To lock only your formula cells, you need to unlock everything else first.
- Press Ctrl + A to select all cells.
 - Right-click and select âFormat Cellsâ.
 - In the âProtectionâ tab, uncheck âLockedâ and click âOKâ.
 
2. Find and Select Formula Cells
Now, itâs time to identify the cells containing formulas so you can protect them.
- Go to the âHomeâ tab, choose âFind & Selectâ, then âGo To Specialâ.
 

- Select âFormulasâ and click âOKâ. This highlights all cells with formulas.
 

3. Lock Selected Cells with Formula
With your formula cells highlighted, itâs time to lock them.
- With the formula cells selected, right-click and choose âFormat Cellsâ.
 - In the âProtectionâ tab, check âLockedâ and then click âOKâ.
 

4. Activate Sheet Protection
Now that your formula cells are locked, protect your worksheet to make the changes permanent.
- Go to the âReviewâ tab and select âProtect Sheetâ.
 - You can set a password here to prevent others from unlocking the sheet without authorization (optional).
 - Click âOKâ to activate protection.
 
for more tricks view more
for our channel EasyExcel
					
							
			
		
		
		
		
		
			
		
                               
                             
		
		
		