How To Freeze Rows And Columns In Excel? [2023]

Do you want to master the art of freezing rows and columns in Excel? It’s easier than you think!

This article will walk you through the steps and provide tips for locking multiple rows or columns.

You’ll be a pro at freezing cells in no time!

Key Takeaways

  • Freezing rows and columns in Excel allows you to keep specific information visible while scrolling through a large dataset.
  • It helps in organizing and referencing data, preventing important information from getting lost.
  • Freezing rows and columns improves efficiency and productivity when working with spreadsheets, saving time and effort.
  • It facilitates comparison and analysis of data and improves overall efficiency in data manipulation.


You can easily keep certain rows or columns in view while you navigate to another area of the worksheet using Excel’s Freeze Panes command.

This feature is very useful when working with large data sets, as it allows you to lock specific columns and rows so that they remain visible no matter how far down or across your spreadsheet you scroll.

By freezing panes, you can quickly locate important information and prevent yourself from becoming lost in an ocean of numbers.

Using this tool is simple: select the row or column where you’d like to freeze cells, then click on View > Freeze Panes > Freeze Panes.

To unfreeze a pane, simply click on View > Unfreeze Panes. You can also freeze multiple panes at once by selecting more than one row or column before freezing them.

Excel’s Freeze Panes function makes navigating large datasets much easier by allowing users to keep relevant cells visible while scrolling through their spreadsheets. With just a few clicks, you can lock specific rows and columns in place – making it easy to find what you need without getting lost!

How to freeze rows in Excel?

To lock certain sections of your spreadsheet, try panning the view! Freezing rows in Excel is an easy process that will help you stay organized.




Here are the steps to follow:

  1. Click on the View tab.
  2. Select Freeze Panes.
  3. Choose one of these options:
    • Freeze Top Row – to lock the first row.
    • Freeze Panes – to lock several rows.

Once you’ve selected a freeze option, it will remain applied even when scrolling through your sheet! In this way, you can quickly and effectively organize your data without having to worry about misplacing important information as you work.

How to freeze only the top row in Excel?

To keep the top row of your spreadsheet visible all the time, you can use freeze panes to lock it in place.

In Excel, go to the View tab, Window group and click Freeze Panes > Freeze Top Row. This will ensure that as you scroll down or across your document, the first row remains visible at all times. 




You can recognize that the top row is frozen by a grey line below it.

Using this feature is helpful when dealing with larger spreadsheets with many rows and columns; you will be able to easily refer back to column headers no matter where you are scrolling.

It also helps maintain data integrity since any changes made won’t affect the top row until they’re manually unfrozen.

It’s important to remember that freezing panes doesn’t prevent other users from editing cells – it simply keeps them visible as one scrolls down or across in their worksheet.

To make sure certain rows or columns remain unchanged, use cells protection instead which allows for more control over who has access and edit rights within a document.

How to freeze multiple rows in Excel?

By using the ‘Freeze Panes’ feature, you can keep several of your sheet’s rows visible as you scroll.

To do this, select the row below the last one you want to freeze. Then go to View > Freeze Panes and click ‘Freeze Panes’.

This will lock all rows above the selected one in place.

For example, if you select row three or its first cell, Excel will freeze the top two rows for you.

You’ll now be able to scroll down your sheet without losing sight of these locked rows.

Keep in mind that it’s not possible to lock multiple non-consecutive rows – only those at the top of your spreadsheet are eligible for freezing.

Additionally, make sure that all frozen rows are visible before freezing them; otherwise, they won’t show up after locking them.

Related: How to Enable Dark Mode in Excel And Microsoft Office?

How to freeze columns in Excel?

Locking certain columns in place can be done using the ‘Freeze Panes’ feature.

To do this, select the cell that is one row above and one column to the right of the area you want to freeze.

Next, choose ‘View,’ then ‘Freeze panes,’ followed by ‘Freeze Panes.’

When this is done, any rows above and columns to the left of your selection will stay in place when you scroll up or down or left or right.

This will allow you to view data in an organized way as you make adjustments to other parts of your spreadsheet.

You can also freeze multiple columns at once by selecting a range of cells that are two rows above and two columns to the right of your desired frozen area.

Then follow the same steps as previously mentioned for freezing panes.

It’s important to note that if you forget which columns are currently frozen, simply select View, then Freeze Panes again and it will tell you what has been frozen on your screen.

Freezing panes can be a great tool for managing complex spreadsheets with lots of information so take advantage of it today!

How to lock the first column?

Now that you know how to freeze columns in Excel, let’s look at an even more specific task – locking the first column.

To do this, click on the View tab and select Freeze Panes. Then choose ‘Freeze First Column’ from the drop-down menu.





This will make sure that your leftmost column is always visible no matter how far to the right you scroll within your sheet. Having this feature enabled can be particularly useful for tracking data over long periods of time as it allows you to reference back to initial values while scrolling through subsequent entries.

Additionally, if there are certain values that you want to remain constant across all cells in a given row or column, freezing those respective rows or columns can be very helpful.

So don’t forget – when it comes to freezing columns and rows in Excel, ‘Freeze First Column’ is one of your best options!

How to freeze multiple columns in Excel?

If you want to keep multiple sections of your worksheet in view, you can ‘lock’ them together.

To freeze more than one column in Microsoft Excel, start by selecting the column or first cell to the right of the last column you want to lock.

Then go to the View tab and click Freeze Panes > Freeze Panes.

You’ll know it worked when you see a thicker and darker border around the columns that are locked in place.

Note that only columns on the left side of the sheet can be frozen; any columns out of view will be hidden after freezing.

With this technique, you’ll never have to scroll endlessly through your spreadsheet again!

How to freeze rows and columns in Excel?

To keep multiple sections of your worksheet in view, you can lock them together by selecting the cell below the last row and to the right of the last column you’d like to freeze. Then, click ‘Freeze Panes’ on the View tab.

This is a great way to keep your data organized and easily accessible. You won’t have to scroll through it all when referencing different parts.

You can freeze as many rows and columns as desired, starting with the top row and leftmost column. For example, if you want to lock both the top row and first column, select cell B2. For freezing the first two rows and first two columns, select C3, and so on.

To unfreeze your panes, simply click on Freeze Panes again or use the keyboard shortcut Ctrl+Alt+F8.

Mastering this technique will help make sure that your spreadsheet remains visible while scrolling down or right without losing important information from sight.

How to unlock rows and columns in Excel / Unfreeze Panes?

Unlocking your worksheet’s sections quickly is easy using the ‘Unfreeze Panes’ option in the View tab’s Window group. This option allows you to regain control of rows and columns that have been frozen in Excel.

To use this option, go to the View tab and select Window. Then, click on Unfreeze Panes. This will instantly unlock any previously frozen rows or columns on your spreadsheet.

Now, you can resume editing those sections without worrying about them becoming locked again! This simple technique allows you to regain access to areas of your worksheet quickly and easily.

Is Freeze Panes not working?

If the Freeze Panes button isn’t working, it’s likely due to cell editing mode or a protected worksheet. To fix this:

  • Press the Enter or Esc key to exit out of cell editing mode.
  • Remove workbook protection.
  • Select the row or column you’d like to freeze.
  • Click View > Freeze Panes > Freeze Panes.
  • Select the area of your worksheet that you’d like to keep visible while scrolling.

It’s important to understand that when freezing panes, only rows above and columns on the left will be frozen.

With just a few steps, you can master this task in no time!

How To Use The Magic Freeze Button?

With just one click, you can quickly lock any row or column in place with the Magic Freeze Button.

To add this shortcut to your Quick Access Toolbar, follow these steps:

  1. Click on the down arrow and then select ‘More Commands’.
  2. Choose ‘Freeze Panes’ and it will appear in your toolbar.

You can now freeze rows and columns with a single click. This is especially useful for larger spreadsheets which contain multiple headers that need to be printed on each page.

With the Magic Freeze Button, you’ll save time when formatting documents and make sure all header information appears correctly every time. Simply click the button to freeze rows or columns, allowing you to move freely around your spreadsheet without disrupting important data.

And if ever you don’t need it anymore, simply delete it from your Quick Access Toolbar!

How To Freeze Multiple Columns Using VBA?

Now that you know about the Magic Freeze button, let’s take a look at how to freeze multiple columns in Excel using VBA. With this method, you can quickly freeze rows and columns across multiple sheets in your workbook.

To get started, open the worksheet containing the dataset and click on the Visual Basic button in the Developer tab of your ribbon.

This will open up the Visual Basic Editor where you can copy and paste our code provided earlier to freeze the first three columns.

After saving it as a macro-enabled workbook, all that’s left is to run it by pressing F5.

Once done, you’ll notice that column D is selected and that your first three columns have been frozen.

You can also modify this code to freeze any number of rows or columns – or both – depending on what you need. And if you want to do this for multiple worksheets in your workbook, simply use our other code provided above instead!

So there you have it – freezing multiple columns using VBA is quick and easy!

“Sub FreezeColumnsinAllSheets() For Each ws In Worksheets ws.Activate Columns(“A:A”).Select ActiveWindow.FreezePane = True Next ws End Sub”

Keep Multiple Columns Visible Using the Split Option

By using the Split option, you can keep multiple columns visible while scrolling through your worksheet. After selecting the column you wish to freeze, click on the View tab and select the Split command in the Window group.




This will divide your window into two panes, with a grey split line between them.

The first pane contains the columns that will remain visible as you scroll through the second pane. You can then scroll to view data that appears far away from your current location without losing sight of your frozen columns.

Additionally, you can adjust where the split line is located by dragging it up or down to resize each pane accordingly. With this feature, Excel makes it easy for you to quickly work through large datasets without becoming confused or overwhelmed by all of its contents at once.

How To Remove The Split?

To remove the split, click the Split button and it’ll deactivate, collapsing both panes into one.

The Split button then becomes transparent to indicate that it’s inactive.

It’s easy to freeze columns and rows in Excel so they don’t move when you scroll through a worksheet. Here are a few methods you can use:

  • Freezing Panes: Use the Freeze Panes command to select which row or column should remain visible at all times.
  • Splitting: Use the Split command to divide your worksheet into two separate panes, each with its own scrollbar.
  • Keyboard Shortcut: Hold down Shift + Alt + W to freeze columns and rows simultaneously.
  • VBA Macro Code: Write code in Visual Basic for Applications (VBA) if you’re familiar with programming languages.

By using these techniques, you can keep track of what data is shown on each side of the screen without having to constantly scroll back up or down.

This saves a lot of time and effort when working with large datasets!

Other ways to lock columns and rows in Excel

Apart from freezing, there are other ways to lock certain areas of a sheet in Excel. To do this, you’ll need to use the Protect Sheet feature.

This feature allows you to protect data in a worksheet so that it cannot be changed or deleted without permission. You can also specify which areas of the worksheet are locked and which are not.

To start protecting your sheet, open a new worksheet and click the ‘Review’ tab at the top of the screen. Select ‘Protect Sheet’ from the ribbon menu.

In the Protect Sheet window, enter a password that will be required for any changes to be made on your sheet after protection is enabled.

Next, select which cells and ranges you want to lock by clicking on them from within the ‘Select Locked Cells’ dialogue box.

Finally, click ‘OK’ at the bottom of the window to save your settings and protect your sheet.

With this method, you can easily lock rows and columns in Excel as well as other parts of your worksheet!

Split panes instead of freezing panes

Splitting panes in Excel is another way to keep certain areas of a worksheet visible and scrollable separately.

To do this, select a cell below the row or to the right of the column where you want the split, then click the Split button on the View tab > Window group. This will divide your Excel window into two or four sections that can be scrolled independently.

When scrolling within one area, cells in other areas remain fixed. To undo a split, simply click the Split button again.

The advantage of splitting panes over freezing is that it allows you to scroll through large amounts of data without losing sight of key information. It’s also easier than manually hiding and unhiding columns and rows each time you need them visible.

With just a few clicks, you can have multiple sections of your worksheet visible at once and quickly switch between them as needed. Mastering this functionality can dramatically improve your efficiency when working with complex worksheets in Excel!

Related: How To Remove Password From Excel File?

Use tables to lock the top row in Excel

You can use tables to keep your top row visible as you scroll down in Excel. To get started, press the Ctl + T shortcut on your keyboard. This will create a table with the range of cells that you have highlighted.

The advantage of using a table is that it will automatically include any new rows or columns that are added to the table, so you don’t need to worry about manually adjusting your freeze pane settings each time more information is added.

In addition, when scrolling through your data, the column and row headings will remain static at the top and left side respectively, allowing for easy viewing and navigation.

Furthermore, if you ever want to turn off this feature or adjust other table properties such as banded rows or alternating colors for readability, you can do so by right-clicking on any cell within the table and selecting Table Properties.

All in all, creating an Excel table is a quick way to ensure that your header row remains visible while scrolling down through data.

Print header rows on every page

Printing header rows on each page of a document is easy to do. Just head to the Page Layout tab, select the Print Titles option in the Page Setup group, then go to the Sheet tab and select Rows to repeat at top. This will ensure your headers appear on each printed page.

Here’s what you’ll need to do:

  1. Go to the Page Layout tab
  2. Select the Print Titles button in the Page Setup group
  3. Head over to Sheet tab
  4. Select Rows to repeat at top


Frequently Asked Questions

What Are the Differences Between Freezing and Locking Rows and Columns?

Freezing and locking rows and columns in Excel both allow you to keep certain parts of your spreadsheet visible as you scroll.

When you freeze a row or column, it will stay fixed at the top or left side of the window, while other cells continue to move when scrolling.

Locking a cell prevents any changes being made to it, but it can still be scrolled away from view.

To make sure data remains secure, consider using both freezing and locking together for maximum protection.

Is There a Way to Freeze Rows and Columns Without Using the Freeze Panes Option?

Yes, there’s a way to freeze rows and columns without using the freeze panes option. You can use the Freeze Top Row and Freeze First Column options instead.

This will lock the top row or first column, respectively, in place as you scroll through your worksheet.

To do this, go to the View tab on the ribbon menu. Then, select either Freeze Top Row or Freeze First Column from the Window group.

Once enabled, you’ll be able to easily reference data in either of those locked areas of your worksheet as you scroll around it.

How Can I Freeze Columns and Rows in Excel for Mac?

You can easily freeze columns and rows in Excel for Mac.

To do this, click the View tab at the top of your worksheet and select Freeze Panes.

Then choose how you would like to freeze your columns and rows by selecting either Freeze Top Row, Freeze First Column, or Freeze Panes.

Once these steps are completed, any frozen columns or rows will stay visible as you scroll up and down or across your spreadsheet.

How Can I Freeze Rows and Columns in a Specific Area of the Worksheet?

To freeze rows and columns in a specific area of your worksheet, follow these steps:

  1. Select the cell below the row you want to freeze and to the right of the column you want to freeze.
  2. Click on View > Freeze Panes > Freeze Panes.
  3. This action will ensure that when scrolling up or down, left or right, the frozen rows and columns remain visible.

For example, if you wanted to keep Columns A and B as well as Rows 1-3 visible at all times while scrolling through your worksheet, select cell C4 before freezing panes.

Is There a Way to Freeze All Rows and Columns in an Excel Sheet?

Yes, you can freeze all rows and columns in an Excel sheet.

To do this, select the area of the worksheet that you want to freeze.

Then, click on the View tab at the top of your screen and select Freeze Panes from the Layout menu.

This will keep all rows and columns above and to the left of your selection frozen when scrolling through your spreadsheet.

You can always undo this action if needed by selecting Unfreeze Panes from the same menu.

With this tool, you can easily view different areas of a large spreadsheet without losing sight of important data or headers!

Also See: Fix ‘Retrieving data, wait a few seconds, and try to cut or copy’ error in MS Excel


Freezing rows and columns in Excel is a great way to keep your data organized and easily accessible.

You can freeze one or more rows, one or more columns, or both rows and columns for maximum visibility.

The Magic Freeze Button makes it easy to quickly freeze a row or column while the VBA macro allows you to freeze multiple rows and columns at once.

If you need more flexibility, use the Split option to keep multiple columns visible on your screen.

No matter what freezing method you choose, you’ll be able to enjoy the benefits of having an organized spreadsheet that’s always easy to work with!

I am a computer engineer holding a bachelor's degree in Computer Science, complemented by a Master's in Business Administration from University of Strathclyde, Scotland. I currently work as a Senior IT Consultant in Melbourne, Australia. With over 15 years of...