Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Checking Lock Status of Cells.

Checking Lock Status of Cells

Written by Allen Wyatt (last updated November 14, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

Excel allows you to easily change whether a cell is formatted as locked or unlocked. This attribute is handled on a cell-by-cell basis, even though the effects of the locking (or unlocking) are not evident until such point as you protect the entire worksheet.

Since locking and unlocking can be done on an individual cell basis, you may wonder if there is a way to display the lock status (locked or unlocked) of all your cells in a worksheet, at one time, without the need to check each cell individually.

The default lock status for cells is locked, so it probably makes more sense to select those cells that are unlocked. One way you can do that is to follow these steps:

  1. Press Ctrl+F. Excel displays the Find tab of Find and Replace dialog box.
  2. Click the Options button to enlarge the dialog box.
  3. Click the Format button at the right side of the Find What box. Excel displays the Find Format dialog box.
  4. Make sure the Protection tab is displayed. (See Figure 1.)
  5. Figure 1. The Protection tab of the Find Format dialog box.

  6. Make sure the Locked check box is not selected.
  7. Click OK to close the Find Font dialog box.
  8. Click Find All.

At this point, Excel will do one of two things. If it finds any unlocked cells, the addresses of those cells are listed on the screen. If it doesn't find any unlocked cells, then it informs you that it can't find them.

You can also use conditional formatting to highlight unlocked cells. Follow these steps:

  1. Select all the cells you want to check. (You can select all the cells in the worksheet, if you desire.)
  2. With the Home tab of the ribbon displayed, click the Conditional Formatting option in the Styles group. Excel displays a palette of options related to conditional formatting.
  3. Choose New Rule. Excel displays the New Formatting Rule dialog box.
  4. In the Select a Rule Type area at the top of the dialog box, choose Use a Formula to Determine Which Cells to Format. (See Figure 2.)
  5. Figure 2. The New Formatting Rule dialog box.

  6. In the Format Values Where This Formula Is True box, enter the following formula:
  7.      =CELL("protect",A1)=0
    
  8. Click Format to display the Format Cells dialog box. (See Figure 3.)
  9. Figure 3. The Format Cells dialog box.

  10. Use the controls in the Format Cells dialog box to specify how you want the cells formatted.
  11. Click OK to close the Format Cells dialog box.
  12. Click OK.

Now all the cells in your worksheet that are unlocked will have the formatting you defined in step 7.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10766) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Checking Lock Status of Cells.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Replacing Two Tabs with a Space in Limited Situations

The Find and Replace feature of Word is very powerful, allowing you to finely target exactly what you want to search. ...

Discover More

Combining Drives in Storage Spaces

Need to add some addition drive space to your system? Why not consider adding what Windows calls a 'storage space?' This ...

Discover More

Changing Fonts for AutoText Entries

If you use AutoText entries a lot, you may wonder if you can change the formatting stored with your existing entries. The ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Stopping Worksheets from being Reprotected

Securing worksheets and workbooks is a big concern for many people. If you password-protect a worksheet, you expect that ...

Discover More

Password Protecting Specific Columns in a Worksheet

When you are developing a worksheet for others to use, you might want to protect some of the information in that ...

Discover More

Preventing Someone from Recreating a Protected Worksheet

When you share a protected workbook with other people, you may not want them to get around the protection by creating a ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two less than 9?

2022-01-13 19:53:16

Jim

This does not appear to work when Excel is opened in the browser. Any ideas?


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.