Prevent specific rows or columns from moving when you scroll through a spreadsheet in Excel.
This allows you to keep header rows and columns in place so you can tell what each column or row is for no matter where you are in the worksheet.
In Excel, this is called Freezing Panes.
Steps to Lock Rows/Columns in Excel
Steps to Lock Multiple Rows/Columns in Excel at the Same Time
Unfreeze/Unlock Columns and Rows in Excel


Now, when I scroll, you can see that the first row never changes:

If I chose to freeze the first column, then it would look like this:

The first column now stays the same when I scroll to the right or left.
However, the first column and the first row cannot both stay frozen together unless you use another method, explained below.
Use this method to lock multiple rows or columns at the same time or to lock rows and columns at the same time.



Now, I can scroll down and to the right and the first column and row will remain in place.

Using this method, you can freeze the first two rows, the first two columns, the first two rows and the first 2 columns at the same time, basically whatever you want.
Go to the View tab and click Freeze Panes and, if there are any frozen panes in the worksheet, you will see the first choice in the list titled Unfreeze Panes, click that.

You can only freeze the rows starting from the top and the columns starting from the left. You cannot, for instance, freeze the third column and nothing else around it.
Download the spreadsheet that accompanies this tutorial to see this feature in action in Excel.
Follow along with the tutorial by downloading the files used in it. (Completely Free)
Phone number is optional - we use it to send course discounts and weekly updates via SMS.