To prevent accidental deletion or manipulation of complex or sensitive data, Excel allows you to lock some columns while you work. Locking columns helps prevent errors while maintaining data integrity. If your work or assignments require the use of Excel, this is a feature that you will find very useful. Read on to learn how to lock a column in Excel.
Lock Excel Columns Using the Format Cell Method
All Excel columns are usually locked by default, but the lock property is only enabled once the spreadsheet is protected. If a specific column is to be locked, all cells in the worksheet must first be unlocked. Only then can you choose a column and lock it inpidually.
- In your Excel spreadsheet, select all cells using the Ctrl-A shortcut.

• Another option is to touch the triangle in the upper left box of the sheet.
- Right-click the cells and choose “Format Cells” from the menu, then click “Protection.”


• You can also select the “Home” option and choose “Format” from the menu. Choose “Format Cells” from here. Then click “Protection.”

- In the Protection menu, uncheck the “Blocked” box.

- Go to the column header you need to block. Hold down the control key (Ctrl) to select multiple columns and click more column headers.

- Go to the Protection tab in the “Format Cells” dialog box and choose “Protection.”


- In this step, check the “Blocked” option. This locks all selected columns and no one can delete or edit the content. To prevent someone from seeing your locked columns, also check the “Hidden” tab.

- In the review tab, select “Protect Sheet.”

- Choose a password if you want to add a layer of security.

• A password is added while remaining on the Protect Sheet screen. You must enter your password in the top box of the list.
Lock columns by protecting your worksheet
If all columns in the worksheet need to be protected, there is no need to use the above process of selecting columns and checking the locked box again. To protect the entire sheet:
- Access the Review option.

- Choose “Protect Sheet.”

Unlock columns
After locking columns, you may need to rework some data in those columns later. In this case, it is useful to know how to unlock the column. You can lock it again when you’re done.
- Under the “Review” option, select “Unprotect Sheet.”
- Edit your unlocked cells as needed.
- Go back to “Check” and protect the sheet once more.
Freeze panels to lock columns
This is another option when you want to lock columns. When you want an area of the worksheet to be visible while you scroll to other areas, navigate to the “View” tab and then “Freeze Panes.” You can then lock specific columns and rows in place. Alternatively, split the panes to create separate windows on a worksheet.
You can freeze the first column in Excel like this:
- Choose “View.”

- Select the “Freeze Panels” option.

- Choose “Freeze first column.”

A faint line appears between the first column, “A,” and the second column, “B.” this indicates that the first column has been frozen.
You can also freeze the first two columns of Excel as follows:
- Choosing the third column.

- Selecting the “View” option.

- Selecting “Freeze panels”.

- Choose “Freeze Panels” from the options.

You can also freeze columns and rows in Excel. That is how:
- Choose the cell below the rows and to the right of the columns that you want to be visible as you scroll through the worksheet.

- Choose “View.”

- Select “Freeze Panels.”

- Choose “Freeze Panels” from the options provided.

You can unfreeze the columns by opening the View tab, choosing Freeze Panels, and selecting the Unfreeze Panels option from the list. If your Excel sheet does not have a view tab, it could be because you are in Excel Starter. This version does not support all Excel features.
Note: If a column is locked using Freeze Panes, that single column will not be able to scroll. However, the content of the column can be modified at any time.
When the Freeze Panes and Protect Sheet options are used together, you can prevent the column from shifting and protect the content.
To freeze any column in Excel other than the first, you need to select the next one and choose “Freeze Panes.” This means that you should always select the column next to the one you want to freeze.
Why you need to lock columns
Locked columns cannot be modified or deleted intentionally or accidentally. You must lock the columns to:
Prevent data loss
If your data set has multiple columns, it may be modified or deleted by mistake. When a column is locked, this does not happen and the data remains as is. This is an important feature when dealing with large volumes of data to run paired samples T tests in Excel.
Keep formulas safe
Most Excel spreadsheets contain formulas. Locking columns with formulas ensures that they won’t be accidentally modified or deleted, especially when sharing them.
Limited access
With this feature, you can easily control who can access the information in your spreadsheet. Columns with sensitive data may be locked. This includes those with personal data or financial information. You can allow only authorized people to access them.
Saving time
Locking columns saves you time. You won’t have to spend unnecessary time recovering lost data or fixing errors as it prevents data loss and overwriting.
Tips for locking columns in Excel
When you want to protect your columns by locking them in Excel, there are some tips you should keep in mind. These include:
- Consider locking columns with critical or sensitive data that needs to be deleted or modified.
- Lock the entire sheet to ensure that all cells are protected, especially if an alteration affects multiple cells.
- Remove any restrictions or passwords in case you plan to share the sheet with many other people. This allows them to have full access to the file, allowing them to make modifications if necessary without the need to request access.
- Before applying changes to multiple columns, test them first to make sure they work as they should. Test one column and review the results before moving on to others.
Have more control in Excel using the locking columns feature
There are cases when it is necessary to share an Excel sheet with many headers with multiple users. However, a single alteration, whether intentional or accidental, can affect the entire data set, since most columns are usually interrelated. Locking columns can keep some columns visible to users regardless of where they work in the spreadsheet, but it also prevents users from making edits. Protecting columns with a password creates an additional level of security.