How to Lock Borders in Excel (With Easy Steps)

In this article, we will explain how to lock the borders of a table in a few easy steps.

Step 1 – Creating a Dataset

To start with, we need a table whose borders we can lock. We’ll use the dataset below, which has no borders.

Dataset of how to lock borders in Excel

Read More: How to Insert Border in Excel


Step 2 – Open Conditional Formatting

We’ll apply conditional formatting to lock the table borders.

  • Select the whole dataset.
  • Go to the Home tab on the ribbon
  • Select Conditional Formatting.


Step 3 – Apply a New Rule

We’ll now apply a new conditional formatting rule to lock the borders.

  • From the Conditional Formatting drop-down, select New Rule.

New rule of how to lock borders in Excel

  • The New Formatting Rule window will pop up.
  • Select the option indicated in the picture below.
  • Enter the following formula in the indicated box:
=$C5>1000
  • Click Format.

New rule of how to lock borders in Excel

The Format Cells dialog box opens

  • Select the Border tab.
  • Select the Outline option.
  • Click OK.

new rule of how to lock borders in Excel

Read More: How to Change Border Color in Excel


Step 4 – Show the Final Result

As result of the preceding steps, the result looks just like the picture below.

Read More: How to Cancel Moving Border in Excel


Download the Workbook


Related Articles


<< Go Back to Cell Borders in Excel | Excel Cell FormatLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Souptik Roy
Souptik Roy

Souptik Roy, a BSc graduate in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology, dedicated 1.5 years to the ExcelDemy project. During this time, he authored 50+ articles and reviewed 20+ for ExcelDemy. Presently, he is a designer and content developer at YouHaveGotThisMath and Brainor, sister concerns of ExcelDemy. His educational content spans science, mathematics, and grammar. Roy's interests include developing creative ideas, visualizing concepts with tools like Adobe Illustrator, and problem-solving within Microsoft... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo