Hello guys,
I am trying to create a dependent drop-down list in a table range that is dependent on what the user chooses in the first column. The data for the drop down lists are stored in another table on another sheet.
Imagine that the table below is formatted as a table range (Formatted as table - not sure how to call it, hence, table range). This is my example source for the table where the inputs will be. In another sheet i have the unique value validation for the Beverages, done through a VBA code, which updates the list every time new beverages are added to this table, so i can use that as a dynamic range for the first column drop down validation.
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Beverages
[/TD]
[TD]Types of beverages
[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Coffee Latte[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Latte Machiatto[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Black[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Espresso[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]Blueberry[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]English Tea[/TD]
[/TR]
[TR]
[TD]Vodka[/TD]
[TD]Sec[/TD]
[/TR]
[TR]
[TD]Vodka[/TD]
[TD]Double Sec[/TD]
[/TR]
[TR]
[TD]Vodka[/TD]
[TD]Triple Sec[/TD]
[/TR]
</tbody>[/TABLE]
Then, on the input sheet i have another table range, where people should start adding lines, one at a time, first choosing their beverage, then, based on that selection, in the second column, from a dependent list on the first choice, only the choice available to that type of beverage. The last three columns are to be manually inputted by the user.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Beverage
[/TD]
[TD]Type of beverage[/TD]
[TD]Name[/TD]
[TD]Number of drinks[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Black[/TD]
[TD]John[/TD]
[TD]5[/TD]
[TD]20-01-2017[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]English Tea[/TD]
[TD]Maria[/TD]
[TD]3[/TD]
[TD]15-01-2017[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]Blueberry[/TD]
[TD]Gina[/TD]
[TD]6[/TD]
[TD]13-01-2017[/TD]
[/TR]
</tbody>[/TABLE]
The validation for the first two columns i believe should be added indefinitely (or as much Excel allows). I have searched all over the internet but dependent drop down lists are only shown as one time cell selection for each of the two lists. And i need them to repeat for every new line added to the table. I assume this can be made simply by selecting all the cells from a column, going beyond the last table row when assigning data validation, but what i cannot figure out is how to point to the same cell in a row, on the second column (Type of beverage) in the formula field when selecting list.
I am using Office 2013.
Do you guys have any idea how i can tackle this? With Indirect or Offset or something that works. Plus that i have figured out that the formula field in data validation doesn't recognize table ranges (Table1[Beverages]).
I am trying to create a dependent drop-down list in a table range that is dependent on what the user chooses in the first column. The data for the drop down lists are stored in another table on another sheet.
Imagine that the table below is formatted as a table range (Formatted as table - not sure how to call it, hence, table range). This is my example source for the table where the inputs will be. In another sheet i have the unique value validation for the Beverages, done through a VBA code, which updates the list every time new beverages are added to this table, so i can use that as a dynamic range for the first column drop down validation.
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Beverages
[/TD]
[TD]Types of beverages
[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Coffee Latte[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Latte Machiatto[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Black[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Espresso[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]Blueberry[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]English Tea[/TD]
[/TR]
[TR]
[TD]Vodka[/TD]
[TD]Sec[/TD]
[/TR]
[TR]
[TD]Vodka[/TD]
[TD]Double Sec[/TD]
[/TR]
[TR]
[TD]Vodka[/TD]
[TD]Triple Sec[/TD]
[/TR]
</tbody>[/TABLE]
Then, on the input sheet i have another table range, where people should start adding lines, one at a time, first choosing their beverage, then, based on that selection, in the second column, from a dependent list on the first choice, only the choice available to that type of beverage. The last three columns are to be manually inputted by the user.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Beverage
[/TD]
[TD]Type of beverage[/TD]
[TD]Name[/TD]
[TD]Number of drinks[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]Coffee[/TD]
[TD]Black[/TD]
[TD]John[/TD]
[TD]5[/TD]
[TD]20-01-2017[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]English Tea[/TD]
[TD]Maria[/TD]
[TD]3[/TD]
[TD]15-01-2017[/TD]
[/TR]
[TR]
[TD]Tea[/TD]
[TD]Blueberry[/TD]
[TD]Gina[/TD]
[TD]6[/TD]
[TD]13-01-2017[/TD]
[/TR]
</tbody>[/TABLE]
The validation for the first two columns i believe should be added indefinitely (or as much Excel allows). I have searched all over the internet but dependent drop down lists are only shown as one time cell selection for each of the two lists. And i need them to repeat for every new line added to the table. I assume this can be made simply by selecting all the cells from a column, going beyond the last table row when assigning data validation, but what i cannot figure out is how to point to the same cell in a row, on the second column (Type of beverage) in the formula field when selecting list.
I am using Office 2013.
Do you guys have any idea how i can tackle this? With Indirect or Offset or something that works. Plus that i have figured out that the formula field in data validation doesn't recognize table ranges (Table1[Beverages]).