Dependant drop down list google sheets

Create drop-down lists in a cell with Google Sheets.

Create a drop-down list

  1. On your Android phone or tablet, open a spreadsheet in the Google Sheets app.
  2. Tap the cell or cells where you want to create a drop-down list.
  3. In the top right, tap More .
  4. Tap Data Validation.
  5. Under "Criteria," choose an option:
    • List of items: To add an item, tap +Add and enter an item. To save an item, tap Done .
    • List from a range: Enter the cells that will be included in the list.
  6. The cells will have a Down arrow . To remove the arrow, next to "Show dropdown list in cell," turn off the switch .
  7. If you enter data in a cell that doesn’t match an item on the list, you’ll see a warning. If you want people to only enter items from the list, choose "Reject input" under "On invalid data."
  8. In the top right, tap Save. The cells will show a drop-down list.

Change or delete a drop-down list

  1. On your Android phone or tablet, open a spreadsheet in the Google Sheets app.
  2. Select the cell or cells you’d like to change.
  3. In the top right, tap More .
  4. Select Data Validation.
    • To change the items listed, go to "Criteria" and edit the items. In the top right, tap Save.
    • To delete a list, go to the bottom right and tap Remove rule.

Note: If you change the contents of the range you've selected, the changes will be made in the list automatically.

Create drop-down lists in a cell with Google Sheets.

Create a drop-down list

  1. Open a spreadsheet in Google Sheets.
  2. Select the cell or cells where you want to create a drop-down list.
  3. Click Data  Data validation.
  4. Next to "Criteria," choose an option:
    • List from a range: Choose the cells that will be included in the list.
    • List of items: Enter items, separated by commas and no spaces.
  5. The cells will have a Down arrow. To remove the arrow, uncheck "Show dropdown list in cell."
  6. If you enter data in a cell that doesn’t match an item on the list, you’ll see a warning. If you want people to only enter items from the list, choose "Reject input" next to "On invalid data."
  7. Click Save. The cells will show a drop-down list. To change the color of a cell based on the option selected, use conditional formatting. 

Change or delete a drop-down list

  1. Open a spreadsheet in Google Sheets.
  2. Select the cell or cells you’d like to change.
  3. Click Data  Data validation.
  4. To change the options listed, edit the items next to "Criteria."
  5. To delete a list, click Remove validation.
  6. Click Save. If you change the contents of the range you've selected, the changes will be made in the list automatically.

Creating a dependent dropdown list in Google Sheets, as discussed in a previous post, is a great way to add intelligent item selection to your spreadsheet.

What if we need this feature to work across multiple rows?

This post builds on the creative use of dependent dropdown lists by extending the feature across several rows in a spreadsheet.

Let’s jump right in and see how it’s done.

Drop-down lists can be very useful to create in Google Sheets when you want to show a specific list of items for users to select from.

In Google Sheets, you can also create dependent drop-down lists. This means that when a user makes a selection in the first list, the second list will only display relevant values depending on what they selected.

In this tutorial, I will show you how to create a dependent drop-down list in Google Sheets.

Creating a Dependent Drop Down List

Here is what you need to do to create a dependent drop-down list in Google Sheets:

1. The first thing you need to do is create the lists that contain the values you want in your drop-down lists. An important thing to note is that your header rows cannot contain any spaces. This is important because we will be creating named ranges with them.

2. Next highlight the range of cells that you want in your first drop-down list

3. In the top menu select Data and then select Named ranges

4. In the top text field, type the name that you used in your header row for your drop-down list. Select Done when you are finished

5. Next we need to create a named range for your second list. Select Add a range

6. Type the name of the header column, and make sure to set your cell range for the range of this second list. In this example it is B2:B6. Select Done when you are finished

7. Next, click on the cell where you want the first drop-down list to appear. In my example, I selected cell D1. Then, go into the top menu and select Data, then select Data validation

8. For the criteria section, you want to have a list from a range set up for the range that contains your header rows. In my example it is A1:B1. Also make sure the checkbox for Show dropdown list in cell is selected. Select Save when you are finished.

9. In the cell that you selected in step 7, you should now see a drop-down list that contains your two lists

10. In any cell, we need to now create an INDIRECT formula that references the cell our first drop-down list is in. In my example, I am using cell D1, so my INDIRECT function is =INDIRECT[D1]

11. Next select the cell next to your first drop-down, list. I have selected E1 in this example.

12. In the top menu select Data, and then select Data validation

13. For the list from a range criteria, you need to select the range of cells that contains the values from your INDIRECT function. In my example you can see these values are in cells A8:A12, so that is what I input into this box. Make sure the “show dropdown list in cell” checkbox is marked, and select Save

14. You have now created your dependent drop-down list. You should see that as you select the first list, the options in the second list change depending on your first selection

Closing Thoughts

We have known shown you the basics of creating a conditional drop-down list. Whatever you select in the first list will change the options in the second list.

This is just scratching the surface of what is possible. Your drop-down list options are dynamic, so if your values in your ranges ever change, your options in the drop-down list will also change.

One tip that you might find useful is to leave a much larger range in step 13. This will allow room for your values to grow so your list stays dynamic.

You can also use this method and create lists from another sheet, you will just have to change your cell references to pull from a different sheet. This can be useful if you don’t want your list and all the options to appear on the same sheet.

More Google Sheets Tutorials:
How to Transpose Data
How to Create Dynamic Named Ranges
How to Use the IMPORTRANGE Function

Video liên quan

Chủ Đề