Hi everyone,
I have a tree (data) structure (see below) from which I would like to create dynamic drop down lists that will be in another workbook for users to answer. The drop downs in the other workbook will be based on the formula of indirect as I want users to get pre-selected options to answer (e.g. if you answer Europe as Region in first dropdown, you should only be able to see countries in Europe as selection options in the next dropdown, and so forth). My idea around this is to create named ranges for each level in the tree structure (e.g. all countries belonging to Europe are defined as Europe, and all cities belonging to Denmark are defined as Denmark) to enable indirect formula in the dropdowns. However, the document contains several hundreds of rows and I want to create the named ranges automatically based on the hierarchical structure. I assume a macro is needed for this. It would be very appreciated if someone can help me with this?
I have a tree (data) structure (see below) from which I would like to create dynamic drop down lists that will be in another workbook for users to answer. The drop downs in the other workbook will be based on the formula of indirect as I want users to get pre-selected options to answer (e.g. if you answer Europe as Region in first dropdown, you should only be able to see countries in Europe as selection options in the next dropdown, and so forth). My idea around this is to create named ranges for each level in the tree structure (e.g. all countries belonging to Europe are defined as Europe, and all cities belonging to Denmark are defined as Denmark) to enable indirect formula in the dropdowns. However, the document contains several hundreds of rows and I want to create the named ranges automatically based on the hierarchical structure. I assume a macro is needed for this. It would be very appreciated if someone can help me with this?
Region | Country | City | Office |
Europe | Denmark | Copenhagen | Fredriksberg |
North America | USA | Los Angeles | Malibu |
Europe | France | Paris | La Défense |
Asia | China | Shanghai | Hongqiao |
Europe | Denmark | Copenhagen | Nyhavn |