Protecting columns in Excel stops other people (or you, by accident) from editing or deleting important data such as formulas, reference tables or headers. Excel protects at the sheet level, so the trick is to unlock everything else first, then lock only the columns you care about, and finally turn on sheet protection. The whole process takes a couple of minutes once you know the sequence.

What You'll Need

  • A spreadsheet in Excel (the desktop version for Windows or Mac; the steps below are for desktop, and labels can differ slightly by version).
  • Optionally, a password if you want protection that others cannot remove.

Step-by-Step

  1. Open your workbook and go to the worksheet containing the columns you want to protect.
  2. Select all cells on the sheet. Click the triangle in the top-left corner above row 1 and to the left of column A, or press Ctrl+A (Cmd+A on Mac).
  3. Unlock every cell. Right-click the selection and choose Format Cells (or press Ctrl+1 / Cmd+1), go to the Protection tab, and clear the Locked checkbox. Click OK. This step feels backwards, but it is essential: by default every cell in Excel is locked, and locking only takes effect once the sheet is protected. Unlocking everything first means you can choose exactly which columns end up protected.
  4. Select the columns you want to protect. Click the column letter (for example, C) to select the whole column, or drag across several letters (C through F) to select a group. Hold Ctrl (Cmd on Mac) to select non-adjacent columns.
  5. Lock those columns. Press Ctrl+1 (Cmd+1) to open Format Cells again, go to the Protection tab, and tick the Locked checkbox this time. Click OK.
  6. Optionally hide formulas. If the protected columns contain formulas you do not want people to see even by clicking the cell, tick the Hidden checkbox on the same Protection tab while the columns are still selected. The results still display, but the formula bar shows nothing for those cells once protection is on.
  7. Protect the sheet. Go to the Review tab and click Protect Sheet (or right-click the sheet tab at the bottom and choose Protect Sheet).
  8. Set a password if needed. Type a password, confirm it, and click OK. Note that Excel cannot recover a forgotten sheet password, so store it somewhere safe such as a password manager. If you leave the password blank, anyone can simply unprotect the sheet again, which is fine when you only want to prevent accidental edits.
  9. Choose what users can still do. In the Protect Sheet dialog, the checklist lets you allow actions like selecting cells, formatting, sorting or using AutoFilter while protection is active. By default users can still select both locked and unlocked cells, which is usually what you want. Adjust the boxes, then confirm.
  10. Test it. Click an unlocked cell and type something, then try the same in a protected column. Excel should accept the first edit and show a warning for the second.

To change the protected columns later, click Unprotect Sheet on the Review tab, enter the password if you set one, and repeat the process with a different selection.

Common Mistakes

  • Skipping the unlock-everything step. If you protect the sheet without unlocking the rest first, the entire sheet becomes read-only, not just your chosen columns.
  • Forgetting the password. Microsoft cannot retrieve a lost sheet password for you, and there is no official recovery route.
  • Protecting the wrong sheet. Protection applies per worksheet. If your workbook has several tabs, each one needs its own setup; protecting one sheet does nothing for the others.
  • Confusing Protect Sheet with Protect Workbook. Protect Workbook on the Review tab prevents sheets from being added, deleted, renamed or moved, but it does not stop anyone editing cells. For column protection you want Protect Sheet.
  • Not allowing sorting or filters. If users need to sort or filter the sheet, tick those options in the Protect Sheet dialog, otherwise the buttons will be greyed out.

Tips

  • You can protect different columns with different permissions on the same sheet by using the Allow Edit Ranges feature on the Review tab, which lets specific ranges stay editable with or without their own passwords.
  • Unlocking input cells and locking everything else is the standard pattern for forms and templates: users fill in only the open cells and cannot break the structure.
  • Hidden columns combined with the Hidden option keep sensitive calculations out of sight, but remember this is convenience, not security; the data still exists in the file.
  • In Excel for the web you can protect a sheet and lock cells with the same basic idea, but the options are more limited than the desktop version, so do complex setups on desktop.

Troubleshooting

  • The whole sheet is read-only, not just some columns. Unprotect the sheet (Review > Unprotect Sheet), select all cells, unlock them via Format Cells, then lock only the intended columns and protect again.
  • Protected cells can still be edited. The sheet protection is probably not actually on. Go to the Review tab; if the button says Protect Sheet rather than Unprotect Sheet, protection is off. Also check that the Locked box is ticked for those columns.
  • Sort, filter or insert buttons are greyed out. Unprotect the sheet, then reprotect it and tick the relevant options in the dialog, such as Use AutoFilter and Sort.
  • Lost the password. There is no official way to remove protection without it. You can copy the sheet contents into a new workbook, which brings the values but not the protection.
  • Protection options are greyed out. The workbook may be shared or marked as final, or another person may have applied workbook-level protection with a password. Check File > Info for any restrictions applied to the file.

Frequently Asked Questions

Can I protect columns without a password?

Yes. Leave the password box empty when you click Protect Sheet. The columns will be locked against edits, but anyone can click Unprotect Sheet on the Review tab to remove it, which is ideal for preventing accidental changes.

Does protecting a column hide its contents?

No. Locking only prevents editing. To keep formulas out of view, tick the Hidden checkbox in Format Cells before protecting the sheet, or hide the column itself.

Can I protect columns in Excel for the web or mobile?

Excel for the web supports basic sheet protection and cell locking, but with fewer options than desktop. The mobile apps mainly open protected files; full setup is best done on desktop.

Why can users still copy data from locked cells?

By default, protection still allows selecting locked cells, so contents can be copied. You can untick Select locked cells in the Protect Sheet dialog to prevent selection, though this also stops copying.

Will protection survive saving as a different file type?

Sheet protection is preserved in standard Excel workbooks (.xlsx, .xlsm, .xls). Saving to CSV strips it out entirely, because CSV files cannot store formatting or protection.