Curious Minds

Clear answers to science and history questions

Lock a Column in Excel and Google Sheets – Step by Step

· 5 min read · Science

Freezing a column keeps it visible while you scroll, and protecting a column stops others from changing its contents. In Excel and Google Sheets the steps differ, but both can be done without any add‑ins. Below are the exact actions for each program, plus how to fix the most common hiccups.

Decide Which Spreadsheet Application You Need

Excel offers both "Freeze Panes" for quick visibility and a separate "Protect Sheet" feature for edit control. Google Sheets combines visibility ("Freeze") with protection ("Protected ranges") in its own menus. Choose the method that matches the task you want: simply keep a column in view, or also block edits.

Before‑You‑Start Checklist

  • Identify the column letter (e.g., A, B, C) you want to lock.
  • Save a copy of the workbook in case you need to revert changes.
  • Make sure no other users are editing the file at the same time.
  • Know whether you need just a visual freeze or full edit protection.
  • In Excel, confirm that the workbook is not already protected; in Google Sheets, verify you have edit rights.

Freeze a Column in Excel

Select the Column to Freeze

Click the column header to the right of the column you want to keep stationary. For example, to lock column A, click the header of column B.

Open the Freeze Panes Menu

Go to the View tab on the ribbon, then click Freeze Panes. Choose Freeze First Column if you want column A, or Freeze Panes to lock the selected column and any rows above the active cell.

Confirm the Freeze

Scroll horizontally; the frozen column should stay in place while the rest of the sheet moves. If it does not, repeat the steps and ensure the correct column header is selected before opening the menu.

Locking Mistake: Not Selecting the Correct Adjacent Column

  • Cause: Selecting the column you intend to freeze rather than the one to its right.
  • Effect: Excel freezes the wrong column, leaving the desired column scrollable.
  • Fix: Click the header of the column immediately to the right of the target before using Freeze Panes.

Freeze a Column in Google Sheets

Open the Freeze Menu

Click the View menu at the top, hover over Freeze, then select 1 column. This always freezes column A. To freeze a different column, first click the column header to the right of the one you want, then repeat the same menu choice.

Verify the Freeze

Drag the horizontal scroll bar; the frozen column should remain visible. If it moves, double‑check that you selected the column immediately to the right of the target before choosing the freeze option.

Locking Mistake: Forgetting to Refresh the Browser

  • Cause: After applying the freeze, the view does not update because the sheet is still loading.
  • Effect: It appears as if the column did not freeze.
  • Fix: Press F5 to refresh the page, or wait a few seconds for the change to render.

Protect a Column from Editing in Excel

Unlock All Cells First

By default every cell is locked, but the lock only takes effect after sheet protection is turned on. Press Ctrl+A to select the entire sheet, right‑click, choose Format Cells, go to the Protection tab, and clear the Locked checkbox. Click OK.

Select the Target Column and Lock It

Click the header of the column you want to protect (e.g., column C). Press Ctrl+1 (or right‑click → Format Cells) and re‑check the Locked box. Click OK.

Enable Sheet Protection

Go to the Review tab, click Protect Sheet. In the dialog, you may set a password (optional but recommended). Ensure the box for "Select locked cells" is checked, and uncheck any actions you do not want users to perform, such as "Delete rows". Press OK. If you set a password, you will be asked to confirm it.

Test the Protection

Try typing into the protected column; Excel will display a message that the cell is protected. Attempt to edit an unlocked column to confirm that other cells remain editable.

Locking Mistake: Protecting the Sheet Before Locking Specific Cells

  • Cause: Applying sheet protection while all cells are still marked as locked.
  • Effect: The entire worksheet becomes read‑only, not just the target column.
  • Fix: Follow the unlock‑all‑cells step first, then lock only the column you need before enabling protection.

Protect a Column from Editing in Google Sheets

Select the Column Range

Click the column header (e.g., D) to highlight the entire column. If you need a subset, drag to select the specific rows.

Open the Protected Ranges Dialog

Right‑click the selection and choose Protect range, or go to Data → Protected sheets and ranges. A sidebar appears on the right.

Define the Protection

In the sidebar, give the range a descriptive name (e.g., "Lock Column D"). Click Set permissions. Choose "Only you" or "Custom" to specify which collaborators may edit. Click Done.

Verify the Restriction

Attempt to type into the protected column while logged in as a collaborator without edit rights. Google Sheets will display a warning that the range is protected.

Locking Mistake: Forgetting to Exclude Header Rows

  • Cause: Protecting the entire column, including the header row that you might still want to edit.
  • Effect: You cannot rename the column later without removing protection.
  • Fix: In the protected range dialog, adjust the range to start at row 2 (e.g., D2:D) if you need the header free.

Troubleshoot Locked‑Column Issues

SymptomPossible CauseFix
Column scrolls away despite freezingIncorrect adjacent column selected before applying FreezeSelect the column immediately to the right of the target and re‑apply Freeze Panes.
All cells are read‑only after protecting sheetSheet was protected before unlocking cellsUnprotect the sheet, unlock all cells, lock only the desired column, then protect again.
Collaborator can still edit a protected range in Google SheetsPermissions set to "Anyone can edit" instead of customOpen the Protected ranges sidebar, edit permissions, and restrict editing to specific users.
Freeze disappears after reopening the workbookWorkbook was saved in a format that does not retain view settings (e.g., .csv)Save the file as an Excel workbook (.xlsx) or Google Sheet, not as a plain‑text CSV.

By following the checklist, applying the correct sequence of steps, and watching out for the listed mistakes, you can reliably lock columns for visibility or edit control in both Excel and Google Sheets.

In this article
  1. Decide Which Spreadsheet Application You Need
  2. Before‑You‑Start Checklist
  3. Freeze a Column in Excel
  4. Freeze a Column in Google Sheets
  5. Protect a Column from Editing in Excel
  6. Protect a Column from Editing in Google Sheets
  7. Troubleshoot Locked‑Column Issues