Can you lock rows together in Excel?

Whenever you're working with a lot of data, it can be difficult to compare information in your workbook. Fortunately, Excel includes several tools that make it easier to view content from different parts of your workbook at the same time, such as the ability to freeze panes and split your worksheet

Optional: Download our practice workbook.

To freeze rows:

You may want to see certain rows or columns all the time in your worksheet, especially header cells. By freezing rows or columns in place, you'll be able to scroll through your content while continuing to view the frozen cells.

  1. Select the row below the row(s) you want to freeze. In our example, we want to freeze rows 1 and 2, so we'll select row 3.

    Can you lock rows together in Excel?
    Selecting row 3

  2. Click the View tab on the Ribbon.
  3. Select the Freeze Panes command, then choose Freeze Panes from the drop-down menu.

    Can you lock rows together in Excel?
    Clicking Freeze Panes

  4. The rows will be frozen in place, as indicated by the gray line. You can scroll down the worksheet while continuing to view the frozen rows at the top. In our example, we've scrolled down to row 18.

    Can you lock rows together in Excel?
    The frozen rows

To freeze columns:

  1. Select the column to the right of the column(s) you want to freeze. In our example, we want to freeze column A, so we'll select column B.

    Can you lock rows together in Excel?
    Selecting column B

  2. Click the View tab on the Ribbon.
  3. Select the Freeze Panes command, then choose Freeze Panes from the drop-down menu.

    Can you lock rows together in Excel?
    Clicking Freeze Panes

  4. The column will be frozen in place, as indicated by the gray line. You can scroll across the worksheet while continuing to view the frozen column on the left. In our example, we've scrolled across to column E.

    Can you lock rows together in Excel?
    The frozen column

To unfreeze rows or columns, click the Freeze Panes command, then select Unfreeze Panes from the drop-down menu.

Can you lock rows together in Excel?
Unfreezing a row

If you only need to freeze the top row (row 1) or first column (column A) in the worksheet, you can simply select Freeze Top Row or Freeze First Column from the drop-down menu.

Can you lock rows together in Excel?
Freezing only the top row of a workbook

Other view options

If your workbook contains a lot of content, it can sometimes be difficult to compare different sections. Excel includes additional options to make your workbooks easier to view and compare. For example, you can choose to open a new window for your workbook or split a worksheet into separate panes.

To open a new window for the current workbook:

Excel allows you to open multiple windows for a single workbook at the same time. In our example, we'll use this feature to compare two different worksheets from the same workbook.

  1. Click the View tab on the Ribbon, then select the New Window command.

    Can you lock rows together in Excel?
    Clicking the New Window command

  2. A new window for the workbook will appear.

    Can you lock rows together in Excel?
    The same workbook open in two separate windows

  3. You can now compare different worksheets from the same workbook across windows. In our example, we'll select the 2013 Sales Detailed View worksheet to compare the 2012 and 2013 sales.

    Can you lock rows together in Excel?
    Selecting a worksheet in a new window

If you have several windows open at the same time, you can use the Arrange All command to rearrange them quickly.

Can you lock rows together in Excel?
Clicking Arrange All

To split a worksheet:

Sometimes you may want to compare different sections of the same workbook without creating a new window. The Split command allows you to divide the worksheet into multiple panes that scroll separately.

  1. Select the cell where you want to split the worksheet. In our example, we'll select cell C7.

    Can you lock rows together in Excel?
    Selecting cell C7

  2. Click the View tab on the Ribbon, then select the Split command.

    Can you lock rows together in Excel?
    Clicking the Split command

  3. The workbook will be split into different panes. You can scroll through each pane separately using the scroll bars, allowing you to compare different sections of the workbook.

    Can you lock rows together in Excel?
    The split worksheet

After creating a split, you can click and drag the vertical and horizontal dividers to change the size of each section.

How do I make rows stay together in Excel?

If you want to freeze just one row, one column or both, click the View tab, then Freeze Panes. Click either Freeze First Column or Freeze First Row to freeze the appropriate section of your data. If you want to freeze both a row and a column, use both options.

Can you lock cells together in Excel?

Follow these steps to lock cells in a worksheet: Select the cells you want to lock. On the Home tab, in the Alignment group, click the small arrow to open the Format Cells popup window. On the Protection tab, select the Locked check box, and then click OK to close the popup.

How do you lock cells in a row together?

Go to the Protection tab and uncheck Locked option and click Ok. Now select only the cells or columns, rows that you want to protect. Right click and choose Format cells again. Go to the protection tab and check Locked option and click Ok.

How do you lock rows together in sheets?

To pin data in the same place and see it when you scroll, you can freeze rows or columns..
On your computer, open a spreadsheet in Google Sheets..
Select a row or column you want to freeze or unfreeze..
At the top, click View. Freeze..
Select how many rows or columns to freeze..