Locking a Row in Excel

If you just need to locking a row in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel, select the rows you want to change, open the Home tab, choose the matching command, and confirm.

On this page7
Annotated stepsExcel
1

Select the rows you want to change.

2

Open the Home tab on the Excel ribbon and pick the command that acts on rows.

3

Set any options the dialog offers, then confirm.

4

Check the result on a few rows before applying it to the whole sheet.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Strip “locking a row in excel” back and what you are really doing in Excel is a layout choice that keeps the sheet readable and sortable. The specific commands matter far less than one habit: keep the values behind the result in their own labelled cells, reference those cells from every formula, and rely on Excel to recalculate the instant anything moves. Handle rows that way and the work scales from a handful of rows to thousands without breaking, and it stays auditable for the next person to open it — including you in six months. That is the whole gap between a quick fix you redo every single time and a pattern you build once with rows and simply reuse. Search results often blur “locking a row in excel” together with looser questions about rows, but the wording here is precise on purpose. Specifically, “locking a row in excel” turns on locking row, and that locking row detail is what sets it apart from the dozen near-identical row questions around it. The quickest reliable route in Excel is to build a tiny example matching your data, confirm “locking a row in excel” against the tool above, and only then run it for real — that way you solve the exact locking row problem you searched for, not an approximation. The thing people get wrong about “locking a row in excel” is treating locking row as interchangeable with the generic row case; it usually is not, and the few seconds you spend checking locking row on a small sample is what keeps the result honest. If your real sheet differs in one detail, change that one input, re-check “locking a row in excel”, and the same locking row method carries straight over. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared.

A worked example

Here it is in practice on your rows. Select the rows you are working with, then use the Home tab in Excel to apply the command, and confirm. Try it first on a small copy of your data — or on the tool above — so you can see what happens to the rows before you commit it to the real sheet. Once the result looks right on a few rows, the same steps scale to the whole table without any extra work. So why spend the extra minute on your rows? A well-structured sheet is one other people can read, sort and extend without breaking it — which is most of what makes a spreadsheet useful past its first day. Lock it in once, lean on the tool here to confirm it, and you will not have to think about it again the next time the sheet comes back around. People reach this page for “locking a row in excel” specifically, not for rows in general. Specifically, “locking a row in excel” turns on locking row, and that locking row detail is what sets it apart from the dozen near-identical row questions around it. The practical takeaway in Excel is to treat the locking row inputs as the thing you label and reference, run “locking a row in excel” on a handful of rows first, and lean on the tool above to confirm the locking row outcome before you commit it. What makes “locking a row in excel” trip people up is assuming locking row behaves like every other row task — verify it once on your own numbers and that doubt disappears. Get that loop right for “locking a row in excel” and the same locking row approach answers the next, slightly different version of the question without a rebuild. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “locking a row in excel” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.

Common mistakes

  • Acting on rows that quietly include a header or total row, so the result is off by one with no error to warn you.
  • Hard-coding values inside a formula instead of referencing cells, which silently breaks the moment the data changes.
  • Merging or formatting cells inside a data range, which quietly breaks sorting and filtering of your rows.
  • Overwriting the original data instead of working on a copy, so there is nothing to fall back to if the result is wrong.
  • Testing on a couple of rows and rolling out to thousands without rechecking the edge cases at the bottom of the data.

Frequently asked questions

What is the quickest way to locking a row in excel?

Use the boxed answer at the top of this page — it gives the exact Excel steps for “locking a row in excel”, and the tool just below lets you run it on your own rows before you touch the real sheet.

Can I undo it if it goes wrong?

Always. Press Ctrl+Z (Cmd+Z on Mac) to step back, and rehearse the change to your rows in the tool above before applying it to real data.

Will it work on Mac?

Yes — use the platform toggle at the top of the page for the Mac shortcuts. The formulas and menu paths for rows are the same across operating systems.

Other ways people ask this

People reach this page typing “locking excel rows” and “locking row in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “locking excel rows”, “locking row in excel” all point at the one operation explained on this page, which is why they all lead here.