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

Protecting Formulas in Control-Linked Cells

Form controls can be a great way to get information into a worksheet. They are designed to be linked to a cell so that ...

Discover More

Getting Rid of Extra Quote Marks in Exported Text Files

If you don't like the way that Excel exports information you intend to use with other programs, then your best bet is to ...

Discover More

Disappearing Ribbon Buttons

Excel allows you to configure your system, even to the point of adding macros to your ribbon area. What are you to do, ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Automatically Protecting After Input

Do you want user-entered data to be immediately protected so that it cannot be changed? This can be done relatively ...

Discover More

Enabling Editing Erases Worksheet

If you receive a protected worksheet that you want to edit, how do you proceed if you try to unprotect the worksheet and ...

Discover More

Forcing a Worksheet to be Protected Again

Excel allows you to protect your worksheets so they can only be changed as you want to have happen. If you unprotect 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 8 - 5?

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.