Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Checking Lock Status of Cells.

Checking Lock Status of Cells

Written by Allen Wyatt (last updated June 28, 2025)
This tip applies to Excel 97, 2000, 2002, and 2003


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, if you are using Excel 2003:

  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.

The above technique only works in Excel 2003 because the capability to search for formatting was only added in that version of Excel. Regardless of the version you are using, you can 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. Choose Conditional Formatting from the Format menu. Excel displays the Conditional Formatting dialog box.
  3. Change the left-most drop-down list to Formula Is. (See Figure 2.)
  4. Figure 2. The Conditional Formatting dialog box.

  5. In the formula area (to the right of the drop-down list), enter the following formula:
     =CELL("protect",A1)=0
  1. Click the Format button. Excel displays the Format Cells dialog box. (See Figure 3.)
  2. Figure 3. The Format Cells dialog box.

  3. Change the formatting for the cells in any way desired.
  4. Click OK to dismiss the Format Cells dialog box.
  5. Click OK to dismiss the Conditional Formatting dialog box.

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

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10765) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) 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

Deleting a Style

Excel allows you to define styles that help you display data in a consistent manner. When you no longer need a particular ...

Discover More

Disappearing Status Bar

Ever had your Excel status bar disappear unexpectedly? Here's some ideas on why this may be happening.

Discover More

Characters in the Margin Next to Paragraphs

Laying out a document can be, at times, a challenge. This is particularly the case when you need some special document ...

Discover More

Best-Selling VBA Tutorial for Beginners Take your Excel knowledge to the next level. With a little background in VBA programming, you can go well beyond basic spreadsheets and functions. Use macros to reduce errors, save time, and integrate with other Microsoft applications. Fully updated for the latest version of Office 365. Check out Microsoft 365 Excel VBA Programming For Dummies today!

More ExcelTips (menu)

Protecting Worksheets from Deletion

If you share a workbook with others in your office, you will probably want to make sure that some of the worksheets don't ...

Discover More

Hiding and Protecting Columns

Want to hide certain columns within a worksheet so the contents are not visible to others? The answer lies in formatting ...

Discover More

Unlocking a Worksheet with an Unknown Password

It is not unusual, in a corporate world, to be handed a worksheet whose source you don't know. If that worksheet is ...

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 6 + 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.