Lecture 4 - Security
Lecture 4 - Security
Introduction
It’s important when building an Excel worksheet to know your audience. Who will see and
use the spreadsheet, and for what purpose(s)? Are you creating an Excel spreadsheet that
contains formulas that you don’t want anyone to be able to alter or delete? In these types
of situations, when you are building the spreadsheet, there are measures you can put in
place to protect parts of the worksheet that you don’t want deleted or altered accidentally.
Hiding Worksheets
Another option is to maintain your formulas on a different worksheet than your data.
15. Add a worksheet to your workbook by clicking the plus sign in a circle next to the
Sheet1 tab at the bottom of the Excel sheet.
16. On Sheet2, click in cell A1.
17. Type the formula ‘=Sheet1!B4-Sheet1!B3’.
18. Move the cursor to the bottom right of cell A1 until the pointer changes to a black plus
sign (no arrows).
19. Click, hold and drag down to cell A7.
20. Click in cell A11.
21. Type the formula ‘=SUM(A1:A7).
22. Click on the Sheet1 tab.
23. Click in cell C11.
24. Type the formula ‘=Sheet2!A11’.
25. Delete the information from Sheet1 column D.
26. Right click on the Sheet2 tab and choose Hide.
27. The only remaining visible tab is Sheet1 – change the date in cell B10.
28. Note that the number in C11 changes with the date change, even though all the
calculations are hidden with Sheet2.
Hiding Formulas
Protecting the sheet prevents the formula from being altered, but it can still be seen. Excel also
allows you to also hide the formula.
42. Click on cell C11.
43. Right click and choose Format Cells to open the Format Cells area.
44. Click on the Protection tab and then check the ‘Hidden’ box.
45. Click on the Review tab and in the Changes area, click on [Protect Sheet].
46. You can put a password to lock the worksheet, but this time just click [OK].
47. You can now alter any cell in the worksheet except C11 and you also cannot see the
formula in the formula bar.
48. Click on the Review tab and click on [Unprotect Sheet].
Setting Passwords
In the previous sections, we have not added an actual password, which means that anyone
could unprotect the worksheet and alter formulas. If you need to add extra security to your
worksheet, you can add a password, but be sure to choose something that you can remember.