Contains paid Promotion
Create dependent dropdown menus in Excel
In Excel, it may make sense to create a drop-down list that is based on a data source and also adapts dynamically instead of creating a very long list in rows or columns.
You may also want to create 2 or more lists, with the list below each dependent on the previous one.
How to create interdependent dropdown with dynamic source customization in Excel 2016 can be found in our article.
Create dependent dropdown menus in Excel
In Excel, it may make sense to create a drop-down list that is based on a data source and also adapts dynamically instead of creating a very long list in rows or columns.
You may also want to create 2 or more lists, with the list below each dependent on the previous one.
How to create interdependent dropdown with dynamic source customization in Excel 2016 can be found in our article.
1. Create a dynamic table in Excel
1. Create a dynamic table in Excel
So that our dropdown list adapts dynamically to the data source, we first have to dynamically design the data source (s) ourselves.
In our first example, we compile a list of states and (part of) their respective cities.
- We mark our respective list.
- Then click in the tab: “Paste” on “Table”
- And put there also the hook with “table has headings”.
- Then we assign a name for each of our tables, which should match the title of each table.
See picture: (click to enlarge)
So that our dropdown list adapts dynamically to the data source, we first have to dynamically design the data source (s) ourselves.
In our first example, we compile a list of states and (part of) their respective cities.
- We mark our respective list.
- Then click in the tab: “Paste” on “Table”
- And put there also the hook with “table has headings”.
- Then we assign a name for each of our tables, which should match the title of each table.
See picture:
2. Create a drop-down list in Excel
2. Create a drop-down list in Excel
In order to create our first drop down list for the selection of the federal states click into the desired cell in which the selection is to be available, and then click in the tab: “Data” on “data check”
There we select first as an option the data check “list”, mark our first list with the federal states as an associated data source, and confirm with “OK”.
See picture: (click to enlarge)
In the next step, we limit the choices of the dependent drop-down list by referring to our previously set dynamic tables.
For this purpose, we first mark the cell in which our second drop-down list should be.
- Go over the “Data” tab again in the “Data Review”
- And there select “list”.
In order to set the data source depending on the selection made earlier, we must use a small function and enter “= INDIRECT (G3)” in the data source field.
(we select the cell in which the upstream dropdown selection takes place)
It is important that we enter the cell as relative and not as absolute reference!
- Correct: = INDIRECT (G3)
- Wrong: = INDIRECT ($ G $ 3)
With this function, the list refers to the previously created tables.
We therefore select a table in the first drop-down list, and the second drop-down list uses the “Indirect” function to see which entries exist in this table (exclusive heading), and only selects these according to the preceding entry.
See picture: (click to enlarge)
In order to create our first drop down list for the selection of the federal states click into the desired cell in which the selection is to be available, and then click in the tab: “Data” on “data check”
There we select first as an option the data check “list”, mark our first list with the federal states as an associated data source, and confirm with “OK”.
See picture: (click to enlarge)
In the next step, we limit the choices of the dependent drop-down list by referring to our previously set dynamic tables.
For this purpose, we first mark the cell in which our second drop-down list should be.
- Go over the “Data” tab again in the “Data Review”
- And there select “list”.
In order to set the data source depending on the selection made earlier, we must use a small function and enter “= INDIRECT (G3)” in the data source field.
(we select the cell in which the upstream dropdown selection takes place)
It is important that we enter the cell as relative and not as absolute reference!
- Correct: = INDIRECT (G3)
- Wrong: = INDIRECT ($ G $ 3)
With this function, the list refers to the previously created tables.
We therefore select a table in the first drop-down list, and the second drop-down list uses the “Indirect” function to see which entries exist in this table (exclusive heading), and only selects these according to the preceding entry.
See picture: (click to enlarge)
3. Extend a dynamic table in Excel
3. Extend a dynamic table in Excel
The big advantage of drop-down menus related to dynamic lists is that they automatically adapt to the length of the list entries.
As soon as we add an entry, it will be available in the selection. And when we remove an entry, it also disappears just as quickly.
To look forward to the o.g. For example, we would need to refer to, for example, Add another state to create a new table (renamed), and easily include it in the drop-down selection.
To add new cities to existing ones, we extend the table either by:
- Press the TAB key in the last cell of the table.
- By dragging the list at the bottom right (colored reinforced edge) with pressed left mouse button.
Or by a new entry in an empty cell below the table.
(iD.R., the table is automatically expanded here, and a query appears if so desired.)
Of course, this procedure of the dependent drop-down lists can be continued.
So we could next, for example, depending on the city, still on the municipalities, and then on street directories continue to filter.
The big advantage of drop-down menus related to dynamic lists is that they automatically adapt to the length of the list entries.
As soon as we add an entry, it will be available in the selection. And when we remove an entry, it also disappears just as quickly.
To look forward to the o.g. For example, we would need to refer to, for example, Add another state to create a new table (renamed), and easily include it in the drop-down selection.
To add new cities to existing ones, we extend the table either by:
- Press the TAB key in the last cell of the table.
- By dragging the list at the bottom right (colored reinforced edge) with pressed left mouse button.
Or by a new entry in an empty cell below the table.
(iD.R., the table is automatically expanded here, and a query appears if so desired.)
Of course, this procedure of the dependent drop-down lists can be continued.
So we could next, for example, depending on the city, still on the municipalities, and then on street directories continue to filter.
Popular Posts:
How to delete and edit Google reviews
Reviews on Google help millions of users every day with their decision for or against a product, service or company. But sometimes opinions change and you want to correct your assessment.
These Smartphones get the update to Android 11
After Android 10 "Q", the latest version of Android 11 is in the starting blocks as the successor and brings some improvements with it. You can find out whether your device gets the update in our list.
Microsoft Office gets fresher with a new design
The familiar appearance of Microsoft Office versions will soon be a thing of the past, and a sleek design gives it a fresh look.
Excel Urlaubsplaner 2021 mit Feiertagen und Wochenenden erstellen
Erstellen Sie sich einen Urlaubplaner 2021 mit Anzeige von Feiertagen und Wochenenden mit Excel, den Sie jedes Jahr wieder verwenden können.
Connect the laptop to the desktop PC in the home network
Working with different data on the desktop PC and notebook disrupts the workflow. Synchronize the data on both devices conveniently wirelessly under Windows 10.
Popular Posts:
Who is responsible for data protection in the Home-Office
The home office topic has become increasingly relevant in times of the corona pandemic. But who is actually responsible for data protection at home?
Excel Urlaubsplaner 2021 mit Feiertagen und Wochenenden erstellen
Erstellen Sie sich einen Urlaubplaner 2021 mit Anzeige von Feiertagen und Wochenenden mit Excel, den Sie jedes Jahr wieder verwenden können.
Connect the laptop to the desktop PC in the home network
Working with different data on the desktop PC and notebook disrupts the workflow. Synchronize the data on both devices conveniently wirelessly under Windows 10.