×

How to apply Data Protection to the Worksheet?

What do we mean by Data Protection?

Data Protection in excel involves in protecting your file/data from some other user and also prevents the following accidents –

  • Accidentally deleting or changing the formulas in it
  • Changing the data present in the worksheet/workbook

You can also protect the excel file with a password so that only that person can open the file who knows the password to the file.

How to apply Data Protection to the Worksheet?

There are 2 ways by which data protection can be applied to the sheet/tab –

Using the ‘Review’ tab

  • Go to the ‘Review’ tab
  • Click on the ‘Protect Sheet’ – a pop-up will appear as shown in the below
Data Protection to the Worksheet

Using Mouse

  • Go to Sheet Name
  • Do a right-click and click on ‘Protect’ option.

Different Options in ‘Protect Sheet’ dialog box

Once you get the prompt as shown in the figure above and you have entered a password in ‘Password to Unprotect Sheet’ – you can select either of the following options. By default, the first 2 options are already selected which helps you in just selecting the cells – you cannot make any edits to the cells, you cannot do any formatting, you cannot insert/delete any rows/columns. To perform these operations while the sheet is protected, you need to tick the relevant options –

  • Select locked cells – It is a default option, that enables you to select the locked cells
  • Select unlocked cells – It is a default option, that enables you to select the unlocked cells
  • Format cells – If this option is ticked (?), one can easily apply formatting to locked cells otherwise they will not be able to change the format of the cells as well
  • Format columns – If this option is selected, you can only change the width of the column or hide, cannot cut, clear contents, delete it as the worksheet is protected, so it will not let you change the structure of the file
  • Format rows – If this option is selected, like ‘Columns’ option but just that you can hide or change the height of rows
  • Insert columns – If this option is selected, you can insert new columns as per your requirement.
  • Insert rows – If this option is selected, you can insert new rows as per your requirement.
  • Insert hyperlinks – If this option is selected, the user can insert hyperlinks (even in locked cells).
  • Delete columns – If this option is selected, you can delete the desired columns
  • Delete rows– If this option is selected (?), you can delete the rows.
  • Sort – If this option is selected, the user can sort data in a range (as long as the range doesn’t contain any locked cells).
  • Use AutoFilter – If this option is selected, the user can use existing auto filtering.
  • Use PivotTable reports – If this option is selected, the user can change the layout of pivot tables or create new pivot tables.
  • Edit objects – If this option is selected, the user can make changes to objects (such as Shapes) and charts, as well as insert or delete comments.
  • Edit scenarios – If this option is selected, the user can use the scenarios.

What are Locked cells?

If a worksheet is not protected, when you do a right-click on any cell and click on ‘Format Cells’ and then click on ‘Protection’, by default, ‘Locked’ is ticked. When you protect a worksheet and select any of the options above, if a cell is not locked, the protection does not extend to that cell. So, if you want formula-driven cells to be protected, you can make sure they are locked and the cells which are being called in those formulas (input values), you can unlock them as you might want to change the input values to see the impact on the formula cells.

How to protect the workbook?

Follow the below given steps to protect the workbook –

  • Go to ‘File’ or click on the ‘Windows’ icon for older versions of Ms Excel
  • Click on ‘Protect Workbook’
  • Click on ‘Encrypt with Password’
  • Enter the Password and click on OK and then re-enter the password

You can also protect the structure of the workbook i.e., users will not be able to add, delete, hide, unhide different worksheets in a file –

  • Click on the ‘Review’ tab
  • Go to ‘Protect Workbook’
  • Add Password and re-enter after pressing OK

Related Topics

Calculating Age in Excel

Microsoft Excel provides separate functions for various mathematical operations. Nowadays, Microsoft Excel is widely used by large and various organizations. Using formulas one can calculate the statistical functions quickly and...

2 minutes read.

Calculating the Last Day of the Month in Excel

In Microsoft Excel, various functions exist to calculate the date and time from the current date to the past and future. Among multiple tasks in this tutorial, let's see how...

3 minutes read.

Check Marks in Excel

What is a Check Mark? Among various characters checkmark is one of the characters used to indicate that the item or product in the list is correct, chosen or selected. A...

5 minutes read.

Excel Axes

What is Excel Axes? Axes are a horizontal or vertical line containing units of measure. There are two types of axes X and Y axes. X is a horizontal and Y...

3 minutes read.

Excel Tutorial for Beginners

What is Excel? Microsoft Excel is a software program included in the Microsoft Office suite. It is a commercial spreadsheet application developed by Microsoft for Windows, macOS, Android, and iOS. It...

5 minutes read.

Square Root Function in Excel

The concept of Mathematical calculations includes a large number of numbers and calculations are based on the numbers present in the data. Likewise, Square Root is a function used to...

3 minutes read.

Excel File using Password

How to Protect an Excel File using Password? Nowadays Microsoft Excel is widely used by large organizations to small organizations for their personal and professional usage. They share files to various...

2 minutes read.

Nearest Multiple in Excel

In Excel, the values in Multiplication can be round up, down and to nearest Multiplication number using Excel default function. This makes the calculation to be performed in an easier...

3 minutes read.

Excel Unique Values

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

3 minutes read.

How to Alphabetize in Excel?

Alphabetize in Excel One of the reasons for Excel's widest popularity is its ability to swiftly and effortlessly sort data. Excel facilitates easy methods that alphabetically sort the lists of strings...

5 minutes read.

SumIF Formula in Microsoft Excel

SUMIF Formula in Microsoft Excel is considered the primary and vital formula individuals can use to remove their workload. In this tutorial, we will discuss and learn about the SUMIF Formula...

7 minutes read.

Excel COUNTBLANK() Function

Excel COUNTBLANK() Function The COUNTBLANK() function in excel counts the number of blank cells within a range. Syntax COUNTBLANK ([value1], [value [2], ...) Parameter value1(required)- This parameter represents the first cell in the range. value2, …(optional)- It represents...

1 minute read.

Excel Ribbon Toolbar

Excel Ribbon/Toolbar How does a toolbar look like? The top section of an excel file is called a Ribbon or a toolbar. It has various commands which can be useful for us in our daily work....

6 minutes read.

Excel EDATE() Function

Excel EDATE() Function The EDATE() function in excel returns the serial number of the date that is the indicated number of months before or after the start date. Syntax EDATE(Start_Date, Month) Parameter Start_Date(required)- This parameter represents...

1 minute read.

Excel WEEKNUM() Function

The WEEKNUM() function in excel returns the week number from 1 to 54 of a specific date in a year. The WEEKNUM function starts counting with the week that contains January 1...

1 minute read.

How to use TODAY function in Excel

What is TODAY Function in Excel? Today function is one of the types of Worksheet function (WS) in Excel.Today Function belongs to the Date and Time functions.It is used to calculate...

3 minutes read.

Excel TEXT() Function

The TEXT () function in excel converts a supplied numerical value into the text of a specific format. Syntax TEXT(Value, Format_text) Parameter Value (required)- This parameter represents the value for which we need to...

1 minute read.

What if Analysis Data Table in Excel

What is What-If Analysis? Suppose you have a cell A15 which is formula driven i.e. has a formula and the formula is based on values in different cells (A1, A2, A3, A4), what-if...

4 minutes read.

Averageif Function in Excel

Average If in HTML In Mathematics, Average function is used to find the arithmetic mean of the given data. It is defined as the dividing the sum total of given data...

7 minutes read.

Excel EOMONTH() Function

Excel EOMONTH() Function The EOMONTH() function in excel returns the serial number of the last day of the month before or after a specified number of months. Syntax EOMONTH (Start_Date, Month) Parameter Start_Date(required)- This parameter...

1 minute read.