Lesson 15. Data validation and drop-down lists
Use the Signups sheet in lesson15.xlsx: the signups for a company's computer training courses.
Files: lesson15.xlsx · solutions: lesson15-solutions.xlsx.
Do each exercise in Excel with the lesson's file, type the result you get here and click Check. You can write numbers any way you like: 1,234.50, 1234.5 or $1,234.50.
At the end of the page you'll find the lesson's Bonus challenge: one more exercise, whose answer isn't in the book. You check it only here.
Exercise 1
Show the answer
Select C4:C20, Data Validation, Allow: List, Source: Beginner,Intermediate,Advanced, OK.
Click a cell in C4:C20: the arrow of the drop-down list appears next to it, with Beginner, Intermediate and Advanced.
Exercise 2
Show the answer
Allow: List, Source: =$F$4:$F$7 (selected with the mouse, without the Courses heading).
Exercise 3
Invalid hours. Which style do you choose? Type 50 in D12 to try it: what happens?Show the answer
Allow: Whole number, Data: between, Minimum 1, Maximum 40; Error Alert tab, Style: Stop, title Invalid hours. If you type 50 in D12, the message appears and the value doesn't get into the cell.
Exercise 4
Show the answer
3 cells: C6 (Intermediat, with the last letter missing, instead of Intermediate), B8 (Access isn't in the list of courses), D9 (45 hours, more than 40).
Exercise 5
Show the answer
No: the source is $F$4:$F$7, and cell F8 is outside it. To fix it, extend the source to =$F$4:$F$8 (with Apply these changes to all other cells with the same settings), or turn the list of courses into a table and use INDIRECT with the table's name and its column as the source, as in section 15.3: that way new choices are added by themselves.
Bonus challenge
The answer isn't in the book: you check it only here.
Show the answer
Select D4:D20, open Data Validation and set Allow: Whole number, Data: between, Minimum 10, Maximum 20, then OK and Circle Invalid Data. The circled cells are D5, D7, D9, D11: Mike Robinson (8 hours), Louis Marsh (6), Paul Gardner (45) and David Lambert (8). D6 (20 hours) and D8 (10 hours) are not circled: with between, the minimum and the maximum are valid too. If you still have the validations from exercises 1 and 2, you'll also see circles in C6 and B8.