WISDOMBYDATA
  • BLOG
    • Blog Guide
    • Blog History
  • EXCEL
    • Functions & Formulas
    • VBA & Macros
    • VLOOKUP
    • Pivot Tables
    • Conditional Formatting
    • Tricks & Shortcuts
  • BI
    • SAP BOBJ/BW
    • Tableau
  • SQL
  • ABOUT
    • About WBD
    • About Me

Assigning security rights to specific cells within a MS Excel worksheet

10/21/2016

0 Comments

 

MS Excel has some very unique features for limiting the security rights of users. For example, for limiting the user’s ability to insert/delete/edit column and rows, or change formatting, etc.
​

Establishing worksheet protection settings is a great way to maintain the integrity of your data and formulas on a specific worksheet. Take the Excel sheet below as an example. ​
Picture
The goal is to add read-only security to the product information (i.e. the D2:E5 range) so users could not edit the content. These three steps need to be performed in order to make the content of these cells read-only and prohibit any kind of alterations to the data:
​
STEP 1] Locking the cells
All cells in MS Excel are automatically locked. This could be verified by right-clicking on any cell selecting “Format Cells” and going to the “protection” Tab, as illustrated in the screen shot below:
Picture
First, I will unlock the entire tab and then lock the cells that I want to protect (D2:E5 range). This is for the purpose of demonstrating that the security features have taken effect on the locked range and not the entire spreadsheet.   ​
Picture
STEP 2] Go to the “Review” tab of the ribbon and click on “Protect Sheet”. The screen below appears:
Picture
You will notice that most items in the “Allow all users of this worksheet to” are unchecked with the exception of the first two (i.e. “Select Locked Cells”, and “Select Unlocked Cells”).
​

This section provides the list of permissions that we could grant to unlocked cells (i.e. in the case of this example all cells other than those in the D2:E5 range). I will check all the boxes to grant full permission to the unlocked cells for this demonstration. 
Picture
​STEP 3] Input a password for the sheet and click “OK”.
Picture
Reenter the password. ​
Picture
Now let’s test the sheet to ensure that the procedure above has taken effect correctly.
Contents of the D2:E5 range are read-only and non-alterable and double clicking the content or attempting to edit would result in the warning shown below.
Picture
Whereas, the remainder of the spreadsheet is editable, as an example here is an example of content typed into a random cell not in the D2:E5 range. ​
Picture

0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Categories

    All
    BI
    EXCEL
    MISC
    SQL

    Archives

    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013

Powered by Create your own unique website with customizable templates.
  • BLOG
    • Blog Guide
    • Blog History
  • EXCEL
    • Functions & Formulas
    • VBA & Macros
    • VLOOKUP
    • Pivot Tables
    • Conditional Formatting
    • Tricks & Shortcuts
  • BI
    • SAP BOBJ/BW
    • Tableau
  • SQL
  • ABOUT
    • About WBD
    • About Me