Google Sheets Drop Down List - Data Validation Tutorial, Dynamic Lists from Ranges
Table of Contents
Introduction
This tutorial will guide you through creating dynamic drop-down lists in Google Sheets using data validation. Drop-down lists allow users to select options from a predefined list, helping to maintain data integrity and reduce errors.
Step 1: Create a Basic Drop-Down List
- Select the cell where you want the drop-down list (e.g., B5).
- Go to the menu and click on Data.
- Select Data validation.
- In the Criteria section, choose List of items.
- Enter your options separated by commas (e.g.,
Product A, Product B, Product C
). - Choose whether to show a warning or reject invalid input (select Reject input).
- Optionally, add a help message to guide users.
- Click Save.
Now, clicking on the cell will display the drop-down list with your specified options.
Step 2: Create a Drop-Down List from a Range
- Select the cell for the drop-down list.
- Navigate to Data and select Data validation.
- This time, choose List from a range.
- Click on the Select data range option and select your data from another sheet (e.g., from the Data Sample tab, select B2:B14).
- Ensure Show dropdown list in cell is checked and select Reject input.
- Click Save.
Your drop-down list will now reflect the values from the specified range, updating automatically as you change the data in that range.
Step 3: Make a Dynamic Drop-Down List for Unique Items
- Create a new tab and name it Unique.
- In the first cell of this tab, enter the following formula to retrieve unique items:
=UNIQUE(Data Sample!A2:A)
- Go back to the original tab where you want the drop-down.
- Select the cell and open Data validation.
- Choose List from a range and select the unique items from the Unique tab.
- Make sure to select a larger range to accommodate future additions (e.g., A2:A100).
- Set the validation to Reject input and click Save.
Now, your drop-down list will only show unique entries from the specified range, ensuring that users can select each option only once.
Step 4: Using the Drop-Down for Dynamic Calculations
- In the cell where you want to display calculations (like average price), enter the formula:
Replace=AVERAGEIF(Data Sample!A:A, SelectedCell, Data Sample!B:B)
SelectedCell
with the cell reference of your drop-down. - This will calculate the average based on the selected item from your drop-down list.
As you select different items from the drop-down, the average price will update automatically.
Conclusion
You've now learned how to create various types of drop-down lists in Google Sheets, including basic lists, lists from ranges, and dynamic unique lists. These tools can enhance your spreadsheets by improving data entry accuracy and facilitating calculations based on user selections. Next, consider exploring additional data validation features or integrating these lists into more complex calculations for your projects.