How to lock cells in Excel

You might want some cells on your Microsoft Excel spreadsheet to be protected from editing. You can easily lock those cells to prevent them from being rewritten, and you can lock all cells or specific ones. Let’s take a look at how to lock cells in Excel using both methods.

Difficulty

Easy




Duration

5 minutes

What You Need

  • Desktop PC or laptop with Microsoft Excel

Contents

  • Lock all cells
  • Lock specific cells

Lock all cells

If you take this route, Excel locks all cells on your spreadsheet. However, locking cells has no effect until you protect the spreadsheet too. Here’s how to do both.

Step 1: Select all cells on your spreadsheet by pressing Ctrl + A on your keyboard.

Step 2: Right-click on one of the cells, and then click on Format Cells. You can also press Ctrl + 1 on your keyboard to perform this step.

Right-click on one of the selected cells and select Format Cells.

Step 3: In the window that pops up, look under the Protection tab to verify that all cells are locked by making sure that the Locked option box is checked. Click on OK.

Step 4: With all the cells selected, go to the Review tab from the toolbar at the top. Then click on Protect Sheet.

Step 5: In the window that appears, enter a password to protect your worksheet in the blank space provided. All the selected cells are now locked and protected.

Lock specific cells

You may want only certain cells to be locked on some of your projects. Here’s how to lock specific cells in your spreadsheet.

Step 1: If you have any locked cells from previous locking attempts, you need to unlock all the cells first. Start by selecting all cells by pressing Ctrl + A on your keyboard.

Step 2: Right-click on one of the cells and click on Format Cells, or just press Ctrl + 1 on your keyboard.

Step 3: In the window that appears, uncheck the box under the Protection tab that says Locked. Click on OK once you’ve done that.

Step 4: Select the cells that you want to lock on your spreadsheet.

Step 5: Right-click on one of the cells and click on Format Cells, or just press Ctrl + 1 on your keyboard.

Step 6: In the window that pops up, check the box that says Locked under the Protection tab.

Step 7: The cells you selected are now locked but not protected. Go to the Review tab from the toolbar at the top and select Protect Sheet.

Step 8: In the window that shows up, enter a password in the blank field provided. You have now successfully locked and protected the cells that you selected.

For more Excel tips, check out our articles on how to password protect an Excel file or how to convert a PDF to an Excel document.

Latest posts

NYT Connections hints and answers for Wednesday, July 16 (game #766)

Looking for a different day?A new NYT Connections puzzle appears at midnight each day for your time zone – which means that some people...

Upcoming games 2025 for console and PC

Now that we're well into 2025, there's plenty of big games to look forward to in the coming months. These include a few games...

Meta unveils new plans for multi-gigawatt datacenter clusters the size of Manhattan

Meta's first multi-gigawatt AI datacenter cluster, Prometheus, will go live next yearHyperion will follow, with plans to scale it up to a staggering 5GWCompany...

AI ‘wingman’ app leaks 160,000 screenshots of private chats – here’s what we know

'FlirtAI' has leaked user data in an unprotected storage bucketThe app's user base seems to have primarily been teenagersThe leaked chats could have a...

New PS5 games 2025: most anticipated PS5 release dates

What's the next big PS5 game to release?Now for the games that, while we know are coming, have yet to receive full release dates....

New Xbox Series X games 2025 – the most anticipated Xbox release dates

What's the next big game on Xbox?Finally, here's a list of Xbox games that have been announced, but either don't have more than a...

Spotify HiFi: release date rumors, price predictions, and everything we know so far

For fans of high-fidelity audio, Spotify HiFi could be the Holy Grail. After unveiling its plans for lossless, CD-quality audio in 2021, audiophiles around...

DCU Chapter One: every upcoming DC comic book movie and TV show, plus known release dates

DCU Chapter One is officially up and running. After the release of Creature Commandos season 1 and Superman, James Gunn and Peter Safran's new-look...

The next Sony Santa Monica game reportedly won’t be a new IP ‘but it might feel like one’, says industry insider

Sony Santa Monica's next game is reportedly the studio's "next big thing"Bloomberg reporter Jason Schreier responded to speculation, claiming that the studio's new game...

Samsung might bring back the S Pen to its foldables with an improved design – but only if you really want it

Samsung might have an all-new S Pen up its sleeveA company exec revealed Samsung is developing a new S PenIt will only return when...