Data Validation and Sheet Protection
Learn to prevent data entry errors with Excel's validation tools, restrict editing with sheet and workbook protection, and create secure, professional spreadsheets for shared use at Lakeside Medical Associates.
Video
Watch the lesson video, then complete the reading and challenge.
Presentation Slides
Review the slides below, then complete the reading and challenge.

Lesson Notes
Read through the key concepts before you try the challenge.
Real-World Scenario
Data Validation: Preventing Entry Errors
Data validation restricts what a user can enter into a cell — if an entry does not meet your validation criteria, Excel rejects it (or warns about it) before it can corrupt your data. This is prevention, not correction — far more effective than finding errors after the fact:
- To apply data validation: select the cells you want to validate, click Data > Data Validation > Data Validation. The Data Validation dialog has three tabs — Settings (define the rule), Input Message (show a helpful tooltip when the cell is selected), and Error Alert (define what happens when an invalid entry is attempted). Always configure all three tabs for a professional, user-friendly validation experience.
- List validation creates a dropdown menu restricting the entry to a predefined set of values — in the Settings tab, choose 'Allow: List' and in the Source field, either type the allowed values separated by commas (Medical,Office,Cleaning,Break Room) or reference a range on a separate sheet that contains the list. The dropdown arrow appears in the validated cell, and the user can only select from the listed options. This completely eliminates the 'office' vs 'Office' inconsistency problem.
- Whole Number and Decimal validation restricts entries to numbers within a range — choose 'Allow: Whole Number' and set Minimum and Maximum values (e.g., Minimum: 0, Maximum: 9999) to prevent negative quantities. Choose 'Allow: Decimal' for cost fields where decimal values are valid. The Date validation type restricts date entries to a specific range — for example, allowing only dates within the current fiscal year.
- Input messages display a helpful tooltip when a validated cell is selected — click the 'Input Message' tab, enter a title (e.g., 'Category Entry') and a message (e.g., 'Select a category from the dropdown list. Do not type custom values.'). This guides the user before they attempt an entry rather than surprising them with an error after the fact.
- Error alerts control what happens when an invalid entry is attempted — the Alert style can be 'Stop' (prevents the entry entirely), 'Warning' (allows the user to override with a confirmation), or 'Information' (allows the entry with no override needed, but displays a message). For critical fields like Category that power COUNTIF formulas, use 'Stop' so incorrect entries are impossible. For advisory validations, use 'Warning.'
Sheet Protection: Locking Formulas and Structure
Sheet protection prevents users from editing cells you designate as protected — specifically, it prevents accidental deletion of formulas, changes to structural elements, and modification of headers or labels that the spreadsheet's calculations depend on:
- Protection works in two steps: first, unlock the cells users should be able to edit; then protect the sheet. By default, ALL cells in Excel are 'Locked' (but this has no effect until you protect the sheet). Before protecting: select the data entry cells (Quantity, Unit Cost, Reorder Level, Date columns), right-click > Format Cells > Protection tab > uncheck 'Locked.' Leave formula cells (Total Cost, Status), header cells, and label cells as Locked. Now when you protect the sheet, only the explicitly unlocked cells can be edited.
- To protect the sheet: click Review > Protect Sheet. Choose which actions are allowed even when the sheet is protected — at minimum, check 'Select unlocked cells' and 'Select locked cells' so users can still navigate. Enter an optional password. Click OK. Now any attempt to edit a locked cell shows a message explaining the sheet is protected — users can only edit the unlocked data entry cells.
- Hiding formulas adds an additional layer of protection — with cells selected, right-click > Format Cells > Protection tab > check 'Hidden.' When the sheet is protected, the formula bar shows blank for any cell whose formula is marked Hidden — users can see the calculated result but cannot see the formula logic. Use this for proprietary formulas or to simplify the experience for non-Excel users who might be confused by visible formula syntax.
- Workbook protection prevents changes to the workbook structure — adding, deleting, renaming, hiding, or unhiding sheets. Use Review > Protect Workbook to enable this with an optional password. This is appropriate for a finalized, shared workbook where the sheet structure must remain stable. Users can still edit content within sheets (subject to sheet-level protection) but cannot alter the workbook's sheet organization.
Protecting Ranges for Specific Users
For complex shared workbooks where different staff members need editing access to different parts of the same sheet, Excel provides range-level protection with user-specific permissions:
- Allow Users to Edit Ranges (Review > Allow Users to Edit Ranges) lets you define specific cell ranges that can be unlocked with a unique password — different from the sheet protection password. For example, the nurse manager gets the password for the Medical Supplies range, while the billing coordinator gets the password for the Budget Totals range. Neither can access the other's range. This provides granular access control without needing multiple separate workbooks.
- In practice for Lakeside Medical Associates: the supply tracker might allow the receptionist to edit Item and Date columns, the nurse manager to edit Quantity and Reorder Level, and the billing coordinator to edit Unit Cost — with sheet protection preventing anyone from accidentally editing formulas or headers. This level of setup takes extra time but prevents months of accumulating data errors in a multi-user workbook.
Quick Reference: Data Validation and Protection

Data Validation and Protection Quick Reference — preventing errors in shared spreadsheets
Responsible Use
AI Assist
Knowledge Check
You want to protect the Total Cost formula column from accidental edits, while still allowing staff to update the Quantity column. What is the correct sequence of steps?
Challenge
Apply what you've learned in this lesson.
Finalize your Lakeside Medical Associates supply tracker with professional data validation and sheet protection so it is safe for shared multi-user use. Every data entry column must have appropriate validation, and all formula columns must be protected.
- Apply dropdown list validation to the Category column — allow only: Medical, Office, Cleaning, Break Room. Set a Stop error alert with the message 'Category must be selected from the dropdown list only.' Add an Input Message that says 'Select a category for this supply item.' Test by typing an invalid category and confirming the Stop alert appears.
- Apply whole number validation (minimum: 0, maximum: 9999) to the Quantity column with a Stop error alert ('Quantity cannot be negative. Enter 0 for out-of-stock items'). Apply decimal validation (minimum: 0.01) to the Unit Cost column with a Warning alert (users can override but are warned). Test both validations.
- Select all data entry cells (Item, Category, Quantity, Unit Cost, Reorder Level, Date Ordered). Right-click > Format Cells > Protection > uncheck 'Locked.' Leave all formula cells (Total Cost, Status) and the header row as Locked.
- Protect the sheet using Review > Protect Sheet. Allow: 'Select locked cells' and 'Select unlocked cells.' Use the password 'LakesideMedical2025.' Test that clicking a formula cell in the Total Cost column shows the 'Sheet is protected' message, while Quantity cells remain editable.
- Apply workbook protection (Review > Protect Workbook) to prevent sheet renaming or deletion. Save as 'Supply Tracker – Protected – Lakeside Medical.xlsx.' Document the sheet protection password in a separate text file named 'Password Documentation – Lakeside Medical.txt' (simulating secure password storage).