# Excel How To Lock Cells In Excel Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/excel/how-to-lock-cells-in-excel
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

To lock cells in Excel, select the cells, right-click, choose Format Cells, go to the Protection tab, check "Locked," then protect the sheet.

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the How To Lock Cells In Excel you need in plain EnglishGenerate Formula

Need more than a single How To Lock Cells In Excel formula? Try our free [AI for Excel](https://betteranalyst.com/excel-ai) — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

## How to Lock Cells in Excel

Locking cells in Excel is an essential skill for anyone who wants to protect their data and ensure that certain information remains unchanged while allowing other parts of the spreadsheet to be edited. This feature is particularly useful in collaborative environments where multiple users may have access to the same document. In this blog post, we will explore how to lock cells in Excel and why it is important.

### What Does Locking Cells Mean?

Locking cells in Excel means restricting editing capabilities for specific cells or ranges of cells within a worksheet. By default, all cells in an Excel worksheet are locked, but this locking only takes effect when the worksheet is protected. Once you protect the worksheet, users will be unable to edit the locked cells, while they can still modify the unlocked ones.

### A Practical Example

Imagine you are working on a budget spreadsheet that contains sensitive information, such as total expenses and revenue projections. You want to allow your team to input their individual expenses without altering the overall totals.

### Budget Table:

| Category | Amount | Notes |
| - | - | - |
| Total Income | 5000 | |
| Total Expenses | 3000 | |
| Individual 1 | 200 | Office Supplies |
| Individual 2 | 150 | Travel |

In this scenario, you would want to lock the "Total Income" and "Total Expenses" cells to prevent accidental changes while allowing the "Individual" cells to remain editable.

### Steps to Lock Cells in Excel

1. **Select the Cells to Lock**:

- Click on the cell or range of cells that you want to lock (e.g., Total Income and Total Expenses).

1. **Format Cells**:

- Right-click on the selected cells and choose "Format Cells."
- Go to the "Protection" tab.
- Check the box next to "Locked" and click "OK."

1. **Unlock Other Cells**:

- Select the cells you want to remain editable (e.g., Individual 1 and Individual 2).
- Right-click and choose "Format Cells."
- In the "Protection" tab, uncheck the "Locked" box and click "OK."

1. **Protect the Worksheet**:

- Go to the "Review" tab in the Excel ribbon.
- Click on "Protect Sheet."
- You can set a password if desired (optional) and choose what actions users can perform (e.g., select locked or unlocked cells).
- Click "OK" to protect the sheet.

### Result of Locking Cells

Once you have completed these steps, users will be able to enter their individual expenses in the unlocked cells, but they will be unable to change the total income and total expenses. This ensures that the integrity of your budget remains intact while still allowing for collaboration.

### Why Lock Cells?

Locking cells is beneficial for several reasons:

- **Data Integrity**: Protects critical data from accidental changes or deletions.
- **Collaboration**: Allows multiple users to work on a document without compromising important information.
- **Customization**: You can customize which cells are editable based on user roles or needs.

### Key Takeaways:

- **Locking Cells**: A method to protect specific cells in Excel from being edited.
- **Default Setting**: All cells are locked by default, but this only takes effect when the worksheet is protected.
- **User Control**: You can choose which cells to lock and which to leave editable.
- **Practical Use**: Ideal for budget tracking, data entry forms, and any scenario where data protection is necessary.

Locking cells in Excel is a straightforward process that can significantly enhance the usability and security of your spreadsheets. By following the steps outlined above, you can ensure that your important data remains safe while still allowing for collaboration and input from others.

Happy Excel-ing!

**Beyond the How To Lock Cells In Excel function:** Better Analyst is a full [Excel AI](https://betteranalyst.com/excel-ai) that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free [AI Excel assistant](https://betteranalyst.com/excel-ai) that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free [AI spreadsheet generator](https://betteranalyst.com/ai-excel-spreadsheet-generator) to turn a text prompt into a downloadable Excel file — a full [AI Excel sheet maker](https://betteranalyst.com/ai-excel-spreadsheet-generator) that builds headers, columns, and formulas from your description.

## Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Excel how-to guides

- [How To Lock A Row In Excel](https://betteranalyst.com/excel/how-to-lock-a-row-in-excel)
- [How To Merge Cells In Excel](https://betteranalyst.com/excel/how-to-merge-cells-in-excel)
- [How To Split Cells In Excel](https://betteranalyst.com/excel/how-to-split-cells-in-excel)
- [How To Multiply In Excel](https://betteranalyst.com/excel/how-to-multiply-in-excel)
- [How To Password Protect An Excel File](https://betteranalyst.com/excel/how-to-password-protect-an-excel-file)
- [How To Remove Blank Rows In Excel](https://betteranalyst.com/excel/how-to-remove-blank-rows-in-excel)
- [How To Remove Duplicates In Excel](https://betteranalyst.com/excel/how-to-remove-duplicates-in-excel)
- [How To Separate Names In Excel](https://betteranalyst.com/excel/how-to-separate-names-in-excel)

## Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.
