Share via

Creating a drop-down list that is dependent on another drop-down list.

Anonymous
2023-02-23T02:35:55+00:00

Hello, I'm trying to create a drop-down list based on the results of another data validated drop-down list. I've done this before but that was many years ago. I remember it being rather simple, but I can't remember how. I've read some information about it but can't make sense of it. Could someone help me with this. Just an FYI, it sucks getting old and forgetting half of what you used to know. Thanks

Cris

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2023-02-23T03:20:03+00:00

    Hello CrystalCannon,

    Thanks for contacting us. Sure, I can help you with that. Here's how you can create a dependent drop-down list in Excel:

    1. Create your first drop-down list using Data Validation. Select the cells where you want the drop-down list to appear, then go to the Data tab on the Ribbon and click on Data Validation.
    2. In the Data Validation dialog box, choose List from the Allow dropdown menu, and then enter the source values for the drop-down list in the Source box. For example, if you're creating a list of countries, you might enter the names of all the countries in a column on the worksheet, and then enter the cell range for that column as the source for the drop-down list.
    3. Click OK to close the Data Validation dialog box and create your first drop-down list.
    4. Next, create a named range for each dependent list that you want to create. For example, if you want to create a list of cities based on the country selected in the first drop-down list, you might create a named range for each country that contains the cities for that country.
    5. Go back to the cell where you created your first drop-down list, and select it.
    6. Go back to the Data Validation dialog box, and this time, choose List from the Allow dropdown menu.
    7. In the Source box, enter an INDIRECT function that refers to the named range for the dependent list based on the value selected in the first drop-down list. For example, if you named the ranges for each country based on the country name (e.g., "USA" for the named range of cities in the United States), you might use the following formula: =INDIRECT(A1)
    8. Where A1 is the cell reference for the cell containing the first drop-down list. This formula will look up the named range that matches the selected country and use it as the source for the second drop-down list.
    9. Click OK to close the Data Validation dialog box and create your dependent drop-down list.
    10. Repeat steps 4-8 for any additional dependent drop-down lists that you want to create.

    That's it. You should now have a set of dependent drop-down lists that update based on the value selected in the first drop-down list.

    Regards, Akande

    10+ people found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-02-23T18:24:53+00:00

    Thanks for your help. I'm having problems still. On steps 5-7 of your instructions, do you mean the cell for the new dependent drop-down list or the first drop down list that is not dependent. If it's the first drop down list, then I would be changing the source that seems to be working fine. When I try following your instructions using cell where I want the dependent drop-down list (2nd list) I get an error saying the source currently evaluates to an error.

    Also am I supposed to use a reference to the named dependent lists?

    Not sure if this matters but the source data for the lists are on a separate worksheet from the data entry worksheet where the drop downs live.

    I am sorry that I am so confused. Hope your patient!

    Thanks Cris

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-02-23T19:32:27+00:00

    Hi Cris

    Named ranges do not accept "space" in their name. The "spaces" characters are replaced by "underscores"

    Try replacing "Sub Category" with "Sub_Category"

    The 5 Rules For Naming Ranges In Excel

    1. A name cannot be more than 255 characters long.
    2. You cannot use spaces in your names.
    3. The first letter can only be a letter, an underscore, or a backslash.
    4. You cannot use actual cell addresses as named ranges.

    Regards

    Jeovany

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-02-25T21:02:11+00:00

    Thanks Jeovany. I think you are talking about the label, My named ranges do not have spaces and follow the 5 rules. Any other suggestions?

    Cris

    1 person found this answer helpful.
    0 comments No comments
  4. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-02-23T18:57:44+00:00
    1 person found this answer helpful.
    0 comments No comments