Yes, you can lock columns in Google Sheets, but the method differs slightly depending on whether you are working on a computer or a mobile device. Locking a column prevents other users from editing the data inside it, which is essential for keeping headers, formulas, or reference data safe while allowing edits in other areas of the sheet. The primary tool for this is the 'Protect sheet' feature, which allows you to restrict editing on specific ranges.

What You'll Need

  • A Google account with access to a Google Sheet document.
  • A web browser (Chrome, Edge, Firefox, Safari) for desktop access.
  • The Google Sheets mobile app for Android or iOS devices.
  • Permissions to edit the document if you are sharing it with others.

Step-by-Step

  1. Open your spreadsheet. Navigate to the Google Sheet file you wish to protect. Ensure you are in 'Editing' mode, not 'View only' mode.
  2. Access the menu. Click on the 'Extensions' menu located at the very top of the window, next to 'Help'. If you are on a mobile device, the process is slightly different and is covered in the mobile section below.
  3. Open the add-on. From the dropdown list, select 'Protect ranges' (sometimes listed as 'Protect sheets and ranges'). This will open the sidebar on the right side of the screen.
  4. Create a new rule. In the sidebar, click the '+ Add a sheet or range to protect' button.
  5. Select the range. In the dialog box, click the 'Select a range' field. You can type the specific range (e.g., A1:A10) or click the small grid icon to select the cells visually. To lock an entire column, select all cells in that column by clicking the column header (e.g., the 'A' at the top). If you want to lock multiple columns, you can select them by dragging across the headers or typing a range like A1:D1.
  6. Set the protection name. Give the protection a descriptive name, such as 'Locked Header Column', in the 'Name your protected range' field. This helps you identify the rule later.
  7. Choose who can edit. In the 'Who can edit' dropdown menu, you have several options:
    1. Only you (Owner and editors): This is the strictest option. Only the owner of the file and anyone with edit permission can view the data, but no one can edit the selected range. This effectively locks the column.
    2. Only you (Owner): This allows any editor to view the sheet, but they cannot modify the protected range.
    3. Anyone with access: This grants anyone who has the link to the file permission to view the range, but not edit it.
    4. Only specific people: You can choose to allow editing only for specific email addresses or Google Groups.
  8. Save the rule. Click the 'Save' button at the bottom of the dialog box. The protected range will now appear in the sidebar list.
  9. Confirm the protection. Go back to your sheet and try to click on a cell within the protected range. If the protection is working correctly, the cursor will not enter the cell, or the cell may appear greyed out depending on your display settings. You should see a notification at the bottom of the screen indicating that the range is protected.
  10. Handle existing data. Note that this protection only affects future edits. If there is data currently in the column that you want to make uneditable, you do not need to delete it. The protection will simply prevent anyone from changing the values in that column moving forward.

Step-by-Step for Mobile Devices (Android or iOS)

  1. Open the app. Launch the Google Sheets app on your phone or tablet. Open the specific spreadsheet you want to lock.
  2. Open the menu. Tap the three vertical dots (the menu icon) in the top right corner of the screen.
  3. Select Settings. From the menu, tap 'Settings'.
  4. Find the sheet. Scroll down to the 'Protect sheets and ranges' section and tap on the name of the specific Google Sheet file you are currently viewing.
  5. Create a new rule. Tap the '+ Add a sheet or range to protect' button.
  6. Select the range. You will be asked to select a range. Tap on the 'Select a range' link. You can type 'A:A' to select the entire first column, or drag your finger across the row numbers to select specific rows within a column. Tapping the top of a column (the letter header) is not always an option in the mobile UI; selecting the specific cells in the rows is the standard method.
  7. Set permissions. In the dialog box, choose 'Only you (Owner and editors)' from the 'Who can edit' dropdown. This is equivalent to locking the range for all other collaborators.
  8. Save. Tap the 'Save' or 'Done' button to apply the protection.

Common Mistakes

One common mistake is confusing 'Protect sheets and ranges' with the 'Lock' feature found in some desktop spreadsheet applications like Microsoft Excel. In Google Sheets, there is no simple 'Lock' icon for a column. Users often try to right-click a column header and look for a lock option, which does not exist. The protection must be applied via the Extensions menu or the mobile settings menu.

Another frequent error is setting the permissions to 'Anyone with the link' and expecting non-editors to be able to view the data. While this allows viewing, it does not prevent people with the link from accidentally or intentionally editing the protected range if they have edit access to the file. Always use 'Only you' or 'Owner and editors' if the goal is to stop editing entirely.

Tips

It is good practice to name your protected ranges clearly. If you protect multiple columns, having names like 'Locked Reference Column A' helps you manage the permissions later. If you need to make a temporary change to a locked column, you can edit the protection rule in the sidebar, save it with 'Only you' permissions, make your edits, and then switch the permissions back to 'Anyone with access' or 'Owners and editors' to restore the lock.

Remember that protecting a range does not prevent users from changing the formatting of the cells (such as bolding text or changing color). It only prevents them from changing the actual values in the cells. If you want to prevent formatting changes as well, you would need to use the 'Restrict editing' feature within the protection settings and select 'Restrict formatting' as well, though this is not available on mobile devices.

Troubleshooting

If you find that you can still edit a column that you thought was protected, the most likely cause is that the protection rule was not saved correctly. Go back to the 'Protect ranges' sidebar and check the list of rules. Ensure that the specific range you are trying to protect is listed there. If it is missing, the protection was not applied.

If the protection is applied but you are still able to edit, check the 'Who can edit' setting. If you are trying to lock the sheet for someone else but you are not the owner, you cannot force them to have 'Owner' level permissions. You can only restrict them based on the permissions you have been granted. For example, if you are a 'Viewer', you cannot protect the sheet at all. You must be an 'Editor' in the file settings to create protection rules.

If the protection is not working on the mobile app, refresh the page or close and reopen the app. Sometimes the app caches old settings. If the issue persists, check your internet connection, as the app needs to communicate with Google's servers to apply the permission changes.

Frequently Asked Questions

Can I lock a specific cell instead of a whole column?

Yes. When you are in the 'Select a range' step, instead of highlighting the entire column, simply click on the specific cell you want to protect. You can also hold the Shift key on your computer and click on adjacent cells to select a block of cells, or hold the Ctrl key (or Cmd on Mac) to select non-adjacent cells.

Does locking a column hide it from other users?

No. Locking a column does not hide it. The column remains visible to anyone who has access to the sheet. It only prevents them from typing new data into the cells. If you want to hide data, you must use the 'Hide column' feature in the menu.

Can I protect multiple columns at once?

Yes. In the 'Select a range' field, you can type a range like 'A1:D1' to protect four columns simultaneously, or 'A1:A100' to protect a single column across 100 rows. You can also create multiple separate protection rules for different columns.

Will protecting a column affect formulas in other columns?

No. Protecting a column does not impact the functionality of formulas in other columns. A formula in column B that references column A will continue to update and calculate correctly. The lock only restricts the input of data into the locked column.

How do I remove the protection from a column?

To remove the protection, go back to the 'Protect ranges' sidebar. You will see a list of protected ranges. Find the one you want to remove and click the trash can icon next to it. Confirm the deletion when prompted. The column will then be editable by anyone with permission.

Does this work offline?

Yes, protecting ranges works offline. Once the protection is set while you have an internet connection, the restrictions remain in place even when you are working without a connection. However, you will need to be connected to the internet to save the changes to the protection rule itself.