Der Blog für digitale Kompetenz

Der Blog für digitale Kompetenz

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 – Office 365 can be found in our article.

Create dependent dropdown menus in Microsoft Excel

Topic Overview

Anzeige

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 – Office 365 can be found in our article.

Create dependent dropdown menus in Microsoft Excel

Topic Overview

Anzeige

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)

Dynamische Tabelle in Excel erstellen
Tabellennamen in Excel vergeben
Tabellennamen in Excel anzeigen
Advertisement

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:

Dynamische Tabelle in Excel erstellen
Tabellennamen in Excel vergeben
Tabellennamen in Excel anzeigen
Advertisement

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)

Dropdownliste in Excel einfügen
Datenquelle in Excel festlegen

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)
cshow
Ads

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)

Abhängige Dropdownliste in Excel
Abhängige Dropdownliste

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)

Dropdownliste in Excel einfügen
Datenquelle in Excel festlegen

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)
cshow
Ads

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)

Abhängige Dropdownliste in Excel
Abhängige Dropdownliste

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.

Blogverzeichnis Bloggerei.de

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.

Blogverzeichnis Bloggerei.de

Search for other topics:

About the Author:

Michael W. Suhr
Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

Search for other topics:

About the Author:

Michael W. Suhr
Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

Popular Posts:

2306, 2023

With the webcam to your dream job: Preparation for the video job interview!

June 23rd, 2023|Categories: Career, Hardware, Homeoffice, Shorts & Tutorials|Tags: , , |

Streamline your video interview with our tips on technique, setting, dress, body language and preparation. It's not quite success from the sofa, but this is where you can prove your professionalism.

1805, 2023

IT security: The deceptive appearance of digital security

May 18th, 2023|Categories: Data Protection, Hardware, Homeoffice, Software|Tags: , |

In a digitized world, IT security is an important factor. But technology alone is not enough. A holistic strategy is needed that also takes into account the human component.

2104, 2023

Create Excel Budget Book – with Statistics – Tutorial

April 21st, 2023|Categories: Internet, Finance & Shopping, Microsoft Excel, Microsoft Office, Office 365, Shorts & Tutorials|Tags: , , , |

Create your own Excel budget book with a graphical dashboard, statistics, trends and data cut-off. A lot is possible with pivot tables and pivot charts.

1504, 2023

Excel Database with Input Form and Search Function

April 15th, 2023|Categories: Microsoft Excel, Microsoft Office, Office 365, Shorts & Tutorials|Tags: , |

So erstellen Sie eine Datenbank mit Eingabemaske und Suchfunktion OHNE VBA KENNTNISSE in Excel ganz einfach. Durch eine gut versteckte Funktion in Excel geht es recht einfach.

Spring Specials 2024: Word & Excel Templates

Special Offers 2023: Word Design CV-Templates

Monthly Technique Bestsellers:

Bestseller 2022-2023 WLAN-Heizkoerperthermostate

SmartHome | Energy & Security

SmartHome | Energy & Security

Bestseller 2022-2023 WLAN-Heizkoerperthermostate
Bestseller 2022-2023 Notebooks

PC & Accessoires

PC & Accessoires

Bestseller 2022-2023 Notebooks
Bestseller 2022-2023 Smartphones

Smartphone & Accessoires

Smartphone & Accessoires

Bestseller 2022-2023 Smartphones

Popular Posts:

2306, 2023

With the webcam to your dream job: Preparation for the video job interview!

June 23rd, 2023|Categories: Career, Hardware, Homeoffice, Shorts & Tutorials|Tags: , , |

Streamline your video interview with our tips on technique, setting, dress, body language and preparation. It's not quite success from the sofa, but this is where you can prove your professionalism.

1805, 2023

IT security: The deceptive appearance of digital security

May 18th, 2023|Categories: Data Protection, Hardware, Homeoffice, Software|Tags: , |

In a digitized world, IT security is an important factor. But technology alone is not enough. A holistic strategy is needed that also takes into account the human component.

2104, 2023

Create Excel Budget Book – with Statistics – Tutorial

April 21st, 2023|Categories: Internet, Finance & Shopping, Microsoft Excel, Microsoft Office, Office 365, Shorts & Tutorials|Tags: , , , |

Create your own Excel budget book with a graphical dashboard, statistics, trends and data cut-off. A lot is possible with pivot tables and pivot charts.

1504, 2023

Excel Database with Input Form and Search Function

April 15th, 2023|Categories: Microsoft Excel, Microsoft Office, Office 365, Shorts & Tutorials|Tags: , |

So erstellen Sie eine Datenbank mit Eingabemaske und Suchfunktion OHNE VBA KENNTNISSE in Excel ganz einfach. Durch eine gut versteckte Funktion in Excel geht es recht einfach.

Spring Specials 2024: Word & Excel Templates

Special Offers 2023: Word Design CV-Templates

Monthly Technique Bestsellers:

Bestseller 2022-2023 WLAN-Heizkoerperthermostate

SmartHome | Energy & Security

SmartHome | Energy & Security

Bestseller 2022-2023 WLAN-Heizkoerperthermostate
Bestseller 2022-2023 Notebooks

PC & Accessoires

PC & Accessoires

Bestseller 2022-2023 Notebooks
Bestseller 2022-2023 Smartphones

Smartphone & Accessoires

Smartphone & Accessoires

Bestseller 2022-2023 Smartphones

Title

Ads

Popular Posts:

Search by category:

Autumn Specials:

Anzeige
Go to Top