Module 14 · Data Tools
Only valid shift names

Last week, the team leads typed the shifts themselves: nite owl, early, Sunny shift. The payroll system knows only four nicknames: Early Bird, Sunny, Owl and Weekend Hero. Nobody got paid for "nite owl". This week, Rafael allows only names from the list.
Steps
Make a drop-down list
Data Validation controls what a cell accepts. With a list, the cell gets an arrow, and you pick a value from it.
How to do it
- Select the cells for the list.
- On the Data tab, in the Data Tools group, click Data Validation.
- In the Allow box, select List.
- In the Source box, type the range with the values, for example =$G$5:$G$8.
- Click OK.
- Click a cell with the list.
- Click the arrow next to the cell.
- Click a value in the list.
- You can also type the values in the Source box, with commas: Early Bird,Sunny,Owl,Weekend Hero.
- With the keyboard, press Alt+↓ (Mac: Option+↓) to open the list.
Allow: List, Source: =$G$5:$G$8Task: Use the lists. Hugo works the Owl shift on Monday. Ben works the Sunny shift on Tuesday.
Write your own error message
When someone types a value that is not in the list, Excel stops the entry. On the Error Alert tab, you write the message.
How to do it
- Select the cells with the list.
- On the Data tab, click Data Validation.
- Click the Error Alert tab.
- Type a short title.
- Type a message that says what to do.
- Click OK.
- Style Warning and Information let people keep a wrong value. Use Stop when only the list is allowed.
Title: Unknown shift. Message: Pick a shift from the list.Task: Test the message. Type Night in C8 and press Enter. Click Cancel. Then pick Owl for Iris from the list.