• How to protect a cell from changes in Excel. How to protect cells in Excel from editing

    You can protect information in an Excel workbook in various ways. Set a password for the entire book, then it will be requested every time you open it. Put a password on separate sheets, then other users will not be able to enter and edit data on protected sheets.

    But what if you want other people to be able to work normally with an Excel workbook and all the pages that are in it, but you need to limit or even prohibit editing data in individual cells. This is exactly what this article will discuss.

    Protecting the selected range from modification

    First, let's figure out how to protect the selected range from changes.

    Cell protection can only be done if you enable protection for the entire sheet. By default, in Excel, when you enable sheet protection, all cells located on it are automatically protected. Our task is to indicate not everything, but the range that is needed at the moment.

    If you need another user to be able to edit the entire page, except for individual blocks, select all of them on the sheet. To do this, click on the triangle in the left top corner. Then right-click on any of them and select Format Cells from the menu.

    In the next dialog box, go to the “Protection” tab and uncheck the item "Protected cell". Click OK.

    Now, even if we protect this sheet, the ability to enter and change any information in blocks will remain.

    After that, we will set restrictions for changes. For example, let's disable editing of blocks that are in the range B2:D7. Select the specified range, right-click on it and select “Format Cells” from the menu. Next, go to the “Protection” tab and check the “Protected...” box. Click OK.

    The next step is to enable protection for of this sheet. Go to the tab "Review" and click the "Protect Sheet" button. Enter the password and check the boxes for what users can do with it. Click OK and confirm your password.

    After this, any user will be able to work with the information on the page. In the example, fives are entered in E4. But when you try to change text or numbers in the range B2:D7, a message appears that the cells are protected.

    Set a password

    Now let’s assume that you yourself often work with this sheet in Excel and periodically need to change the data in protected blocks. To do this, you will have to constantly remove the protection from the page, and then put it back. Agree that this is not very convenient.

    Therefore, let's look at the option of how you can set a password for individual cells in Excel. In this case, you will be able to edit them by simply entering the requested password.

    Let's make it so that other users can edit everything on the sheet except the range B2:D7. And you, knowing the password, could edit blocks in B2:D7.

    So, select the entire sheet, right-click on any of the blocks and select “Format Cells” from the menu. Next, on the “Protection” tab, uncheck the “Protected...” field.

    Now you need to select the range for which the password will be set, in the example it is B2:D7. Then go to “Cell Format” again and check the “Protectable...” box.

    If there is no need for other users to edit the data in the cells on this sheet, then skip this step.

    Then go to the tab "Review" and press the button "Allow changing ranges". The corresponding dialog box will open. Click the “Create” button in it.

    The name of the range and the cells it contains are already specified, so simply enter Password, confirm it, and click OK.

    We return to the previous window. Click “Apply” and “OK” in it. This way, you can create multiple ranges protected with different passwords.

    Now you need to set a password for the sheet. On the tab "Review" Click the “Protect Sheet” button. Enter your password and check the boxes for what users can do. Click OK and confirm your password.

    Let's check how cell protection works. In E5 we introduce sixes. If you try to remove a value from D5, a window will appear asking for a password. By entering the password, you can change the value in the cell.

    Thus, knowing the password, you can change the values ​​in protected cells of the Excel sheet.

    Protecting blocks from incorrect data

    You can also protect a cell in Excel from incorrect data entry. This will come in handy when you need to fill out a questionnaire or form.

    For example, a table has a column "Class". There cannot be a number greater than 11 or less than 1, meaning school classes. Let's make the program throw an error if the user enters a number other than 1 to 11 in this column.

    Select the desired range of table cells – C3:C7, go to the “Data” tab and click on the button "Data check".

    In the next dialog box, on the “Options” tab, in the “Type…” field, select “Integer” from the list. In the “Minimum” field we enter “1”, in the “Maximum” field – “11”.

    In the same window on the tab "Message to be entered" Let's enter a message that will be displayed when any cell from this range is selected.

    On the tab "Error message" Let's enter a message that will appear if the user tries to enter incorrect information. Click OK.

    Now if you select something from the range C3:C7, a hint will be displayed next to it. In the example, when we tried to write “15” in C6, an error message appeared with the text that we entered.

    Now you know how to protect cells in Excel from changes and editing by other users, and how to protect cells from incorrect data. In addition, you can set a password, knowing which certain users will still be able to change data in protected blocks.

    Rate this article:

    (1 ratings, average: 5,00 out of 5)

    Webmaster. Higher education with a degree in Information Security. Author of most articles and computer literacy lessons

      Related Posts

      Discussion: 13 comments

      Answer

    The other day, one of the users received a question: How to protect certain cells from changes?

    Can in the usual way, it is possible using VBA (but I am not a supporter of the VBA solution, since this is not allowed and will work everywhere).

    First, make the cells defensible;

    In the format of the cells that you want to protect, you must select the checkbox in the “Protected cell” field. To do this, just right-click and select context menu“Format Cells...” and go to the “Protection” tab.

    The mere presence of this flag does not protect the cell in any way; it only indicates that the cell will become protected after the sheet protection is set. In every new Excel workbook, all cells are protected by default. It is worth noting here that you can change the format of cells at once in the entire selected range, as well as in a group of non-adjacent cells.

    Secondly, install sheet protection.

    To set up sheet protection in Excel 2007/2010, you need to go to the “Review” tab, in the “Changes” group and click the “Protect Sheet” button. In Excel 2003, sheet protection is set through the menu item Tools/Protection/Protect Sheet.

    There is a way quick installation protection for all sheets at once. Only after these two steps have been completed will the cell/cells protection take effect.

    By protecting cells, a table can be clearly demarcated into areas that can be changed and those that cannot be changed. As you have already seen, this is quite simple to do. The only inconvenience arises when you need to selectively protect cells, for example, install protection only on cells with formulas, but this inconvenience can also be solved. To do this, just go to the “Home” tab and in the “Editing” group open the menu of the “Find and Select” button, then select “Select a group of cells...” and select the required option ( read more about selecting a group of cells). After all the necessary cells have been selected, all that remains is to make the cells protected, and then set the sheet protection. Let me remind you that to select all the cells of the sheet, you can use the hotkey combination Ctrl1+A or click on the so-called zero cell (in the screenshot the zero cell is highlighted with a red frame).

    That's all.

    There is another option to solve the same issue:

    Select all cells, then in the menu Format select team Cells(CTRL+1) In the standard dialog box that appears, select the bookmark Protection and uncheck the box opposite Protected cell. Now select the cells that are intended to be blocked (you can select non-adjacent cells and ranges using CTRL key) and in the menu Format again select the Cells command, and then check the box next to Protected cell. Now, in the Tools menu, select Protection and the Protect Sheet command. In the Allow all users of this sheet list: be sure to uncheck the box next to Highlight locked cells and check the box next to Highlight unlocked cells, enter required password and click Ok.

    Data in Excel can be protected from outside interference. This is important because sometimes you spend a lot of time and effort creating pivot table or a volumetric array, and another person accidentally or intentionally changes or completely deletes all your works.

    Let's consider methods of protection Excel document and its individual elements.

    Protecting an Excel cell from modification

    How to protect a cell in Excel? By default, all cells in Excel are protected. This is easy to check: right-click on any cell and select FORMAT CELLS - PROTECTION. We see that the PROTECTED CELL checkbox is checked. But this does not mean that they are already protected from changes.

    Why do we need this information? The fact is that Excel does not have a function that allows you to protect a single cell. You can choose to protect a sheet, and then all cells on it will be protected from editing and other interference. On the one hand, this is convenient, but what if we need to protect not all cells, but only some?

    Let's look at an example. We have a simple table with data. We need to send this table to the branches so that the stores fill out the QUANTITY SOLD column and send it back. To avoid making any changes to other cells, we will protect them.

    First, let's release from protection those cells where branch employees will make changes. Select D4:D11, right-click to open the menu, select CELL FORMAT and uncheck the PROTECTED CELL item.

    Now select the REVIEW – PROTECT SHEET tab. A window appears with 2 checkboxes. We remove the first of them in order to exclude any intervention by branch employees other than filling out the QUANTITY SOLD column. Create a password and click OK.


    Attention! Don't forget your password!

    Now to the range D4:D11 strangers They can only enter some value. Because We have limited all other actions, no one can even change the background color. All formatting tools on top panel instruments are not active. Those. they don't work.

    

    Protecting an Excel workbook from editing

    If several people work on one computer, then it is advisable to protect your documents from editing by third parties. You can put protection not only on separate sheets, but also for the entire book.

    When the book is protected, outsiders will be able to open the document, see the written data, but rename the sheets, insert a new one, change their location, etc. Let's try.

    We keep the previous formatting. Those. We still only allow changes to be made to the QUANTITY SOLD column. To protect a book completely, on the REVIEW tab, select PROTECT BOOK. Leave the checkbox next to the STRUCTURE item and come up with a password.

    Now, if we try to rename the sheet, it won't work. All teams gray: They don't work.

    The protection is removed from the sheet and book using the same buttons. When removed, the system will require the same password.

    This article will discuss how to protect a cell in Excel from changes. Fortunately, this option is present in this spreadsheet editor. And you can easily protect all the data you enter from someone else’s interference. Cell protection is also good way save yourself from yourself. By protecting the cells in which formulas are entered, you will not accidentally delete them.

    Select the required range of cells

    Now the first method will be provided on how to protect cells in Excel from changes. It is, of course, not much different from the second one, which will be described later, but it cannot be missed.

    So, in order to protect table cells from corrections, you need to do the following:

      Select the entire table. The easiest way to do this is by clicking on a special button, which is located at the intersection of the vertical (line numbering) and horizontal (column designation). However, you can also use hotkeys by pressing CTRL+A.

      Press the right mouse button (RMB).

      Select "Format Cells" from the menu.

      In the window that appears, go to the "Protection" tab.

      Uncheck the "Protected cell" checkbox.

      Click OK.

    So, we've just removed the ability to protect all cells in a table. This is necessary in order to designate only a range or one cell. To do this you need:

      Select the required cells using normal stretching while holding down the left mouse button (LMB).

      Press RMB.

      Select "Format Cells" from the menu again.

      Go to "Protection".

      Check the box next to "Protected cell".

      Click OK.

    We put protection on selected cells

    We indicated to the program which cells we want to protect from changes. But this is not enough for them to become protected. To achieve this goal, you need to enable sheet protection in Excel. To do this:

      Click on the "File" tab.

      In the menu, go to the "Information" section.

      Click on the "Protect Book" icon.

      From the menu, select Protect Current Sheet.

    A window will appear in which you need to make settings. Follow the guide:

      Never uncheck the “Protect sheet and contents of protected cells” checkbox.

      In the window located just below, you can make more flexible settings, but by default it is set so that no one can change the parameters.

      Enter your password in the appropriate field. It can be of any length, but remember that the more complex and longer it is, the more reliable it is.

      Click OK.

    After the manipulations have been completed, you will be asked to re-enter your password for all changes to take effect. Now you know the first way to protect a cell in Excel from changes.

    Second way

    The second way to protect a cell in Excel from changes, as mentioned above, is not much different from the first. Here are detailed instructions.

      Just like last time, remove cell protection from the entire table and place it in the desired area.

      Go to "Review".

      Click on the "Protect Sheet" button, which is located in the "Changes" tool group.

    After this, a familiar window will appear in which you need to set protection parameters. Enter the password in the same way, select the necessary options, check the box next to “Protect the sheet and contents of protected cells” and click OK.

    Filling Excel tables- This is a fairly routine process that can lead to errors. Often, when entering data into a table, users accidentally change other cells and have to spend even more time correcting these errors.

    In this article we will talk about how to protect Excel cells from editing. The article will be useful for current versions Excel, such as Excel 2007, 2010, 2013 and 2016.

    The problem is that Excel does not have the ability to protect individual cells from editing. There are no functions to directly implement this idea. But there is one trick that allows you to get almost the same result. You can protect an entire Excel sheet from changes, but still be able to edit individual cells.

    For implementation this method you need to select those cells in which you want to leave the ability to edit data, right-click on them and select “Format Cells” in the menu that opens.

    As a result, the “Format Cells” window will open in front of you. Here you need to go to the “Protection” tab, uncheck the “Protected cell” function and save the settings by clicking on the “OK” button.

    After this, you need to right-click on the sheet name at the bottom of the page and select “Protect Sheet” from the menu that opens.

    Then enter the password again to confirm and click on the “OK” button again. Important point, it is better not to forget the password, otherwise later you will not be able to remove the protection from the sheet.

    That's all, you have protected all the cells of this Excel sheet, of course, except for those for which you have disabled the “Protected Cell” function. Now when working with the data Excel sheet the user will not be able to change any unnecessary data since only individual cells will be available for editing.

    If in the future you come to remove protection from this sheet, then this is done in a similar way. Right-click on the sheet name, select “Unprotect” and enter the password. Without a password, you will not be able to remove protection from the sheet.

    It should be noted that even if the sheet is protected, the user still has the ability to change the name and delete this sheet. In order to avoid such problems, you need to protect all Excel workbook. To do this, go to the “Review” tab, click on the “Protect Book” button and enter the password twice, as was shown above.

    By adding protection to the entire workbook, you will prohibit the user from any operations with the sheets and document structure, which will significantly increase work security.