Google Sheets: Lock Cells While Scrolling?

How-to basics · Updated November 21, 2026

No: Google Sheets cannot lock an arbitrary cell or range in place as you scroll. To keep headings visible, freeze the rows or columns that contain them using View > Freeze; to stop people changing cells, use Data > Protect sheets and ranges, which is a separate feature.

What “locking cells” can mean in Sheets

The phrase “lock cells while scrolling” can describe two different needs. You might want a label, heading, or identifier to remain on screen while you move through a large sheet. Or you might want to prevent someone from editing a value. Google Sheets handles these needs with different tools, and neither tool does both jobs.

Freezing keeps selected top rows and left-hand columns visible while the rest of the grid scrolls. It changes what remains in view, not who can edit the cells. Protecting a range or sheet can limit who may edit it, but protected cells still scroll out of view like any other cells. You can freeze and protect the same range if you need both effects.

For example, a sales sheet might have product names in column A and a header row with dates across the top. Freezing row 1 and column A lets you see those labels as you move through the figures. Protecting the header cells can separately help prevent accidental changes to their wording.

How frozen rows and columns behave

A frozen row stays at the top of the sheet, and a frozen column stays at the left. The remaining, unfrozen grid scrolls beneath or beside them. If both are frozen, they stay visible together, leaving a fixed corner where the frozen area meets the scrolling area. This is useful for tables where you need to match a number to both a row label and a column heading.

Freezing is tied to the sheet’s top and left edges. It is not a floating window that can pin any cell wherever it happens to be, and it does not keep a middle row visible while you scroll past it. You can freeze several leading rows or columns, but you cannot choose separate, non-adjacent cells to remain on screen. A frozen area also remains part of the grid: you can select its cells and edit them if your permissions allow it.

That boundary matters when planning a layout. If the information you need to keep visible is currently in row 12, freezing through row 12 would also keep rows 1 through 11 on screen. It would not pin row 12 alone. Often the practical fix is to move the important labels to the top or left, or to create a compact summary area there.

How to freeze rows or columns

In Google Sheets in a web browser, use the View menu. You can freeze rows and columns independently, and the choices are applied to the current sheet tab. To keep the first row visible:

  1. Open the sheet and select View > Freeze.
  2. Choose 1 row. Choose 2 rows if the first two rows contain headings you need to retain.

To freeze a specific number of leading rows, use the relevant Up to row choice in the same menu. For instance, freezing up to row 3 keeps rows 1, 2, and 3 visible; it does not freeze only row 3. To keep the first column visible, choose View > Freeze > 1 column. For a wider set of identifiers, use the menu choice that freezes columns up to the desired column.

You can freeze rows and columns at the same time. For a table with headings in row 1 and names in column A, freeze one row and one column. To remove a freeze, return to View > Freeze and choose No rows or No columns for the part you want to unfreeze. Menu labels can vary slightly as Google updates its interface, but the controls are in the View menu in the browser version.

Choosing what to keep visible

Freeze only what helps you interpret the scrolling data. Keeping too many rows or columns fixed reduces the space available for the main grid, especially on a small display. A good starting point is one header row and, if needed, one identifier column. Add more only when the table’s structure genuinely requires it.

  • Lists: Freeze the header row so labels such as “Owner,” “Status,” and “Due date” remain identifiable.
  • Wide reports: Freeze the first column when it contains names, locations, or account IDs that give each row meaning.
  • Schedules: Freeze a date or time heading at the top, and consider a left-hand column for staff or resource names.
  • Multi-row headings: Freeze all heading rows that are necessary to understand the columns, but avoid including unrelated notes if they take up screen space.

Before freezing a large block, scroll through the sheet and check what will remain visible. If a heading is buried among title text, blank rows, or notes, reorganizing the sheet may be clearer than freezing a tall section. Freeze settings are per sheet tab, so a workbook can have different arrangements on different tabs.

Protecting cells is a different feature

If “lock” means preventing edits, select the range and choose Data > Protect sheets and ranges. In the side panel, add or confirm the range, choose Set permissions, and decide who is allowed to edit. You can protect a whole sheet or a particular range, and sheet protection can be configured with exceptions for ranges that collaborators should still be able to change.

Protection is useful for formulas, instructions, or approved reference values that should not be changed casually. For instance, a shared budget template could leave input cells open for collaborators while limiting edits to formula cells. It does not make the protected information invisible: people who can view the spreadsheet can generally still see its contents. Treat protection as an editing control, not as a password or a way to secure confidential data from viewers.

Protection also does not guarantee that a user will never alter the spreadsheet in some other way. What a person can do depends on their file access and the permissions you set. If the goal is simply to reduce accidental overwrites, a warning when someone edits a range may be enough; if edits must be restricted, choose permissions deliberately and test the arrangement with an appropriate account.

Common problems and how to fix them

If a heading disappears during scrolling, first check whether it is actually in a frozen row or column. A bold font, a colored fill, or a border only changes appearance; it does not pin the cells. Use View > Freeze and choose the needed rows or columns.

If too much of the sheet stays fixed, the freeze may extend farther down or right than intended. Open the Freeze menu and set the row or column count to the smaller amount you need. Remember that choosing “up to” a row includes every row before it. If the sheet seems to have an unexpected split, check the same menu for active frozen rows or columns and remove them before setting the desired boundary again.

If collaborators can still change a frozen heading, that is expected: freezing does not protect it. Set range permissions separately. Conversely, if protected cells disappear while scrolling, protection is working as designed; it governs editing, not visibility. If only one collaborator has trouble editing, review the range permissions and that person’s access to the file rather than changing freeze settings.

Finally, make sure you are changing the correct sheet tab. A freeze applied to one tab does not automatically configure every tab in the spreadsheet. If the sheet has many tabs, repeat the setup where needed and verify each one.

When a different layout works better

Freezing is usually the simplest answer for a long or wide table. If the detail you need is far from the top-left corner, however, it may be more helpful to redesign the sheet. Move key identifiers to the first columns, put headings in the top rows, or make a concise overview tab that summarizes the information people need while they work.

For large datasets, filters can help narrow the rows shown, but filtering does not pin cells in place. A separate summary tab can keep high-level information visible while users inspect a detailed tab, though any copied or summarized data should be maintained carefully so it does not become outdated. Google Sheets does not provide a command to pin arbitrary, scattered cells as a persistent overlay while scrolling.

Excel has a related but differently presented feature: in Microsoft Excel, Freeze Panes can use the active cell’s position to freeze rows above it and columns to its left. Google Sheets uses its View > Freeze choices for leading rows and columns instead. In either program, freezing is about keeping grid areas in view; it is separate from protecting cells against edits.

Frequently Asked Questions

Can I freeze a single cell in Google Sheets?
No. You can freeze leading rows and columns, not an isolated cell. To keep a cell’s information visible, place it in a row or column that can be frozen, or create a summary area at the top or left.

Can I freeze a row that is in the middle of the sheet?
Not by itself. Freezing up to a particular row keeps that row and all rows above it visible. If you need just one middle row as a reference, consider moving or copying its relevant labels into a top row.

Does protecting a range stop it from scrolling?
No. Protection controls editing permissions; it does not affect the position of cells on screen. Use View > Freeze for persistent headers and Data > Protect sheets and ranges for edit restrictions.

Can I freeze both the first row and first column?
Yes. Choose one row under View > Freeze, then choose one column there as well. Both the top row and left column can remain visible while the rest of the sheet scrolls.

Can I freeze cells without affecting collaborators?
Freeze settings change the sheet’s view behavior rather than its cell contents, but they apply to that sheet tab and can affect how collaborators see it. If you are preparing a shared sheet, let collaborators know about the layout change and check that the frozen area is useful to them too.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.