Skip to main content
  1. Home
  2. Computing
  3. How tos

How to lock cells in Excel

Add as a preferred source on Google
A person using a laptop that displays various Microsoft Office apps.
Shutterstock

Locking cells in a Microsoft Excel spreadsheet is a super useful thing to know how to do. It’s used to protect a certain segment or an entire worksheet from being modified by anyone other than the spreadsheet’s creator.

For example, if you’re an employer and you use Microsoft Excel to create a spreadsheet with multiple drop-down lists for applicants, locking cells will prevent recipients of that form from tampering with any of the data.

Here’s a guide on how to lock cells in Excel.

Recommended Videos

Difficulty

Easy

Duration

5 minutes

What You Need

  • Microsoft Excel

  • PC

Locking individual or multiple cells

Step 1: An Excel spreadsheet might already be locked. Therefore, to lock individual or multiple cells, you’ll have to unlock the spreadsheet first. To do this, click the Green Diagonal button on the top-left side of the first cell.

The button to select all cells within a spreadsheet on Microsoft Excel.
Image used with permission by copyright holder

Step 2: Right-click your mouse and select the Format Cells option from the menu.

The Format Cells button in Microsoft Excel.
Image used with permission by copyright holder

Step 3: Select the Protection tab and unselect the Locked button. Click OK.

The Locked button found within the Protection tab in Microsoft Excel.
Image used with permission by copyright holder

Step 4: Now choose what cells you want to lock by clicking on them. You can select a single cell, multiple cells, a row, or an entire column.

Step 5: Within the selected cell or cells, right-click and choose Format Cells.

Step 6: Navigate to the Protection tab again, select the Locked box, and then click OK.

Locking specific cells in Microsoft Excel by using the Locked box.
Image used with permission by copyright holder

Step 7: In order to confirm the locking of cells, click the Review tab. Now click the Protect Sheet option.

The Protect Sheet button in Microsoft Excel used for confirming the locking of cells.
Image used with permission by copyright holder

Step 8: Choose what sort of protection you want from all the options shown. By default, the Select Locked Cells and Select Unlocked Cells fields are already ticked. You can also input a password for further protection. Click OK.

The cells you’ve chosen will now be locked.

The Protect Sheet window where it lists all the configuration options connected to locking cells.
Image used with permission by copyright holder

Locking an entire spreadsheet

Step 1: At the bottom of Microsoft Excel, right-click the spreadsheet you want to lock.

Step 2: Select the Protect Sheet option. As explained in step 8, customize the different types of protection you want to apply to the spreadsheet, then click OK. As we mentioned in step 1, Microsoft already locks an Excel spreadsheet, so you won’t need to take the steps to do so yourself.

A shortcut to access the Protect Sheet option for locking an entire spreadsheet in Microsoft Excel.
Image used with permission by copyright holder

Now you know how to lock and unlock cells and your Excel spreadsheet, you can retain better control over your data and avoid mistakes with entry.

Excel spreadsheets are considerably flexible, which makes the software suitable for all manner of purposes. If you know how to merge and unmerge cells in Microsoft Excel, you can use it for just about anything.

Zak Islam
Former Contributor
Zak covers the latest news in the technology world, particularly the computing field. A fan of anything pertaining to tech…
I just found a Mac app that puts volume and brightness sliders on your MacBook’s touchpad edges
Forget the function keys, your trackpad edges do it all now.
Slidr app icon on a gradient background

Your MacBook has keys to adjust volume and brightness, making it easy to adjust them. But what if you want to adjust the volume at night or you are watching your favorite movie on Netflix and don’t want to hunt for the keys and miss an important moment? 

I know these are small annoyances, but small annoyances add up, and I love apps that help me resolve them. Today, I want to share an app that solves this issue by adding volume and brightness sliders to your MacBook’s trackpad. 

Read more
I found five desk organization gadgets I’d happily recommend for Back-to-School
Because a cluttered desk is not the productivity aesthetic you think it is.
Computer, Electronics, Laptop

I have seen my desk go from a pristine, organized workplace to something out of a horror movie within a week. One day it's just your laptop and a coffee mug, and a month later it's a scrapyard of tangled cables, chargers, books, and the one key that's been missing since move-in day. If your setup has slowly turned into that mess, this list is for you.

I picked five products that fix different pieces of the same problem: not enough charging, not enough storage, and not enough ways actually to keep track of the stuff you need. None of these will magically make you a tidy person, but they'll take away most of your excuses.

Read more
Lenovo’s next ThinkCenter desktop is ready to hit the shelves, but the price will make you blink twice
The ThinkCentre X is finally heading to the US with up to 256GB RAM, dual RTX 5060 Ti GPUs, and a price tag that rivals a used car.
Lenovo ThinkCentre X workstation with monitor

If the phrase "future-proof desktop" means never worrying about running out of RAM again, Lenovo may have just built the ultimate machine. The company is preparing to launch its new ThinkCentre X workstation desktop in the US after making it available in several international markets. Built for AI workloads, professional content creation, and demanding enterprise applications, the desktop can be configured with up to 256GB of DDR5 memory, Intel's latest Core Ultra 9 processor, and support for dual GeForce RTX 5060 Ti 16GB GPUs.

A workstation built for serious workloads

Read more