×

How to lock top row in Excel

How to lock top row in excel

While working with an Excel spreadsheet, the user utilizes the rows and columns to enter the details under various headings. Sometimes while scrolling the cursor to the lower column or rows, the headings of the sheet are not visible. Therefore the user might get confused with the fields and may not get a proper idea.  Hence to keep the top area of the Excel sheet visible while scrolling to another section of the same Sheet, Excel provides the "Freeze Panes" option. The Excel freeze pane option keeps a specific part of the sheet visible or locked while the rest of the page scrolls.

In this tutorial, we will discover the various ways to freeze or lock a row or column:

KEY points of Excel Freeze

Before we move forward and discover the steps to freeze rows or columns in a worksheet, lets' cover some essential points or Freeze rules guided by Excel:

  1. Excel allows the user to freeze rows from the top area and columns from the left side of the Excel sheet pane; therefore, the user wishes to freeze the rows and columns from the middle or any other sheet position that won't be feasible.
  2. The Excel Freeze Panes command is not accessible when the user is in cell editing mode, i.e., he/she is either entering an Excel formula or data in a cell or if the user has enabled the worksheet in a protected mode. However, the user can cancel the Excel cell editing mode by pressing Enter or the Esc button.
  3. Excel provides you the feature to freeze the top row or the left column of your sheet or multiple rows and columns simultaneously. For instance, if the user has already locked row 1 and wants to freeze column A, row 1 will not be locked anymore, but if he wants to lock both rows and columns, he must freeze them simultaneously.

Freeze the top row

To lock the top row in Excel, following are the steps:

  1. Click on the View tab from the Excel ribbon bar.
How to lock top row in excel
  • From the upcoming pane, select the Freeze Pane option as shown in the below screenshot.
How to lock top row in excel
  • It will display three options. Select the Freeze top option.
How to lock top row in excel
  • As you can see in the below screenshot, Excel has locked the first row and made it visible even if it scrolls the rest of the worksheet.
How to lock top row in excel

Freeze the first column

To lock the first column in Excel, following are the steps:

  1. Click on the View tab from the Excel ribbon bar.
How to lock top row in excel
  • From the upcoming pane, select the Freeze Pane option as shown in the below screenshot.
How to lock top row in excel
  • It will display three options. Select the ‘Freeze First Column’ option.
How to lock top row in excel
  • As you can see in the below screenshot, Excel has locked the first column and made it visible even if it scrolls the rest of the worksheet.
How to lock top row in excel

Note: Sometimes the view tab is not visible to the user, and it may be because they are using Excel Starter. 

How to Freeze Top Row & First Column

Excel’s Top Row & First Column freeze option allows the user to lock both the top row and first column simultaneously. You can implement this preference using the generic option called Freeze Panes. Following are the steps to freeze the row & column simultaneously:

  1. Open the Excel sheet in which you would like to apply the selection cell option. Put your cursor on the cell till which to want to freeze the rows from top and columns towards its left. In our case, we have clicked on B3.
How to lock top row in excel
  • Click on the View tab from the Excel ribbon bar.
How to lock top row in excel
  • From the upcoming pane, choose the Freeze Pane and click on three triangular icon as shown in the below screenshot.
How to lock top row in excel
  • Click on the first option i.e., Freeze Panes.
How to lock top row in excel

NOTE: If you have already selected other freeze options, firstly unfreeze them to unlock the Freeze Pane option.

  • Now if you scroll across your Excel spreadsheet you will notice that Excel has the rows from the top and columns from the left till your selected cell reference (refer to the below screenshot).

How to unfreeze a locked row

Excel only allows freezing either the top row, left column, or both (if done at the same time). Once you freeze a row, you cannot further freeze a column unless and until you unfreeze it.

To unfreeze the row or column in Excel, following are the steps:

  1. Choose the View tab from the Excel ribbon bar.
How to lock top row in excel
  • From the upcoming pane, select the Freeze Pane option as shown in the below screenshot.
  • It will display three options. Select the top option i.,e Unfreeze Panes. This option unlocks all the rows and columns and enables the user to scroll the Excel worksheet.
How to lock top row in excel

Related Topics

Bit Stuffing Program in C

What is a Bit Stuffing? The process of inserting one or more extra bits (0) into data is known as bit stuffing. To provide signalling information to a recipient, these are...

3 minutes read.

Factorial Program in C Using While Loop

Before looking into the mechanism of factorial program, first, you have to understand about the working of a while loop. While Loop The syntax that has been used for the “while” loop...

4 minutes read.

GCD program of two numbers in C

GCD stands for Greatest Common Divisor, which is also known as Highest Common Factor, which can be abbreviated as HCF. Mathematically it can be defined as any two positive integers...

3 minutes read.

Variable in C

Variable is an identifier that holds data in memory. It is used to identify input data in a program. The value of the variable can change at the time of...

2 minutes read.

Dangling pointers in C

Dangling pointers in C: A pointer is a variable that stores the memory address of other variables. The pointers may also store the address of other’s memory items. They are...

4 minutes read.

Round Robin Scheduling in C

Round Robin Scheduling in C Round robin is a CPU (Central Processing Unit) scheduling algorithm designed to share the time systems. It is one of the simplest and easiest scheduling algorithms...

4 minutes read.

Difference between Array and List in C

C# Array vs List is where the abstraction and implementation of human computing meet.  Arrays are incredibly related to the hardware concept of contiguous and contiguous memory, where each part is...

3 minutes read.

How to Find Square Free Numbers in C?

Introduction Square-free number program is a typical interview and academic question in C Programming. In this section, we will define square-free integers, construct algorithms and C program to print the nth...

11 minutes read.

How to initialize array to zero in C

In this article, you will learn how to initialise an array to 0 in C In C, an array is declared as: char ZEROARRAY[2022]; The global scope changes at runtime to all zeros....

3 minutes read.

Static in C

Static is a keyword that is used in the C programming language. It can be used both as variables and as functions. In other words, it can be declared both...

3 minutes read.

Infinite loop in C

Definition of infinite loop The infinite loop is a loop that does not get dismissed because of its looping construct. A continuous output or no output are the two possible outcomes...

3 minutes read.

getc() function in C

Getc is one of the file handling technique in C. The Getc() is a C library function gets the next character or new characters  from the specific stream and supports...

4 minutes read.

C printf and Scanf

Input-Output functions in C Programming In C Language, the printf() and scanf() are inbuilt library functions that used for input and output. It is defined in the header file“<stdio.h>”. printf() Function: In C...

2 minutes read.

Associativity of Operators in C

What is an Associativity operator? Two operators with equal priority are connected by employing their association when they are present in an expression. There are two different types of associativity: left to rightright...

4 minutes read.

Floyd’s triangle in C

Floyd’s triangle in C Floyd’s triangle is named after a person Robert Floyd. It is a right-angled triangle that is of natural numbers starting from 1 and consecutively selects the upcoming...

4 minutes read.

Purpose of a Function Prototype in C

A function prototype in C is a declaration of a function that specifies the function's name, return type and parameters. It has the following syntax: return_type function_name(parameter_list); For example, the prototype for...

4 minutes read.

C Switch Statements

Switch-case statement comes under the Selection control statement; there are four types of Control statements Decision-making statements (if, if-else)Selection statements (Switch-case)Iteration statements (for, while, do-while)Jump statements (break, continue, goto) If we want...

4 minutes read.

For Loop in C

The Syntax of For Loop for (initialization statement; test expression; update statement) {     /* main body of the FOR loop */ } How does For loop work? In for loop, the initialization command is...

3 minutes read.

GPA Calculator in C

GPA stands for Grade Point Average. This GPA is used to measure the student's academic performance in educational institutes. By using this, segregation takes place and lets us know how...

4 minutes read.

Dynamic memory allocation

Dynamic memory allocation is used to allocate the memory at runtime. It has following function within <stdlib.h> header file. Function Syntax malloc() malloc (number *sizeof(int)); calloc() calloc (number, sizeof(int)); realloc() realloc (pointer_name, number * sizeof(int)); free() free (pointer_name); malloc() function The process...

2 minutes read.