In Excel, select the columns you want to change, open the Home tab, choose the matching command, and confirm.
On this page7
Select the columns you want to change.
Open the Home tab on the Excel ribbon and pick the command that acts on columns.
Set any options the dialog offers, then confirm.
Check the result on a few columns before applying it to the whole sheet.
What this does
At its core, “locking columns in excel” in Excel is a layout choice that keeps the sheet readable and sortable — and getting it right is less about memorising clicks than about how you lay the sheet out. Put each value that drives the result in its own labelled cell, point every formula at those cells rather than at numbers typed inline, and let Excel recompute automatically whenever the data shifts. Do that and columns stop being a fiddly one-off: the setup is reusable, it survives a dataset that keeps growing, and it stays readable to whoever opens the file next. The few minutes spent structuring columns cleanly are exactly what separate a result that happens to work today from one you can still trust — and defend — months from now. Search results often blur “locking columns in excel” together with looser questions about columns, but the wording here is precise on purpose. Specifically, “locking columns in excel” turns on locking, and that locking detail is what sets it apart from the dozen near-identical column questions around it. The quickest reliable route in Excel is to build a tiny example matching your data, confirm “locking columns in excel” against the tool above, and only then run it for real — that way you solve the exact locking problem you searched for, not an approximation. The thing people get wrong about “locking columns in excel” is treating locking as interchangeable with the generic column case; it usually is not, and the few seconds you spend checking locking 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 columns in excel”, and the same locking method carries straight over. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make.
A worked example
Put it into practice with your real columns. Begin by selecting the columns in question, then reach for the Home tab in Excel and choose the command before confirming. Do a dry run on a small extract of the data, or in the tool higher up the page, to watch the effect on your columns ahead of time. Once a few rows look correct, scaling to the full table needs no extra effort at all. It is worth doing your columns properly the first time. 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. Build it once, verify it against the tool above, and the same setup keeps earning its keep on every later visit to the file. People reach this page for “locking columns in excel” specifically, not for columns in general. Specifically, “locking columns in excel” turns on locking, and that locking detail is what sets it apart from the dozen near-identical column questions around it. The practical takeaway in Excel is to treat the locking inputs as the thing you label and reference, run “locking columns in excel” on a handful of rows first, and lean on the tool above to confirm the locking outcome before you commit it. What makes “locking columns in excel” trip people up is assuming locking behaves like every other column task — verify it once on your own numbers and that doubt disappears. Get that loop right for “locking columns in excel” and the same locking approach answers the next, slightly different version of the question without a rebuild. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
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. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. Treat “locking columns 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
- Applying the action to the wrong column — check the selection highlight covers exactly the columns you mean before you commit.
- 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 columns.
- Assuming Excel saved your work — confirm the save, especially before closing a shared workbook.
- Testing on a couple of columns 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 columns in excel?
Use the boxed answer at the top of this page — it gives the exact Excel steps for “locking columns in excel”, and the tool just below lets you run it on your own columns 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 columns 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 columns are the same across operating systems.
Other ways people ask this
On the way here you may have searched this as “excel column locking”, “locking column in excel” and “locking a column in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel column locking”, “locking column in excel”, “locking a column in excel” all point at the one operation explained on this page, which is why they all lead here.