I am trying to create data validation where the choices the user has is limited to what is in another column. I've created a simple example so you can see what I mean.
In Column A are my "categories". In Column B are the specific "choices". Each choice belongs to a category.
(On a different sheet I will have the data validation drop-down, but for the sake of this example I've put them on the same sheet.) I will have a column that has a row for each category that exists (Column D in my screenshot). In the next column I want there to be a drop-down list in each row, where the choices are from Column B, but the only choices listed should be where the value in the Column D cell matches Column A. For instance, the only choices for Fruit should be Banana & Apple.
To make it more complicated, the number and names of the categories will be changing, and the number of choices will be changing. So I need this to work dynamically.
I have looked at many web pages and forum posts about how to do this, but all of them are pretty complicated. They all require me to create "helper" columns. For instance, I could create a column for Fruit, another for Veggie, and another for Dairy. In each column I could have it list only the choices for that category. But since the number of categories will be changing, that becomes a little complex to deal with. Before I go that route, I wanted to make sure there wasn't an easier way to do it. It seems like there should be a way to do what I am wanting to do without any helper columns. Perhaps there's a formula I could use in the data validation that would do it? I don't have a lot of experience with data validation, so I don't quite understand all the ins & outs of it.
Any help would be appreciated.
In Column A are my "categories". In Column B are the specific "choices". Each choice belongs to a category.
(On a different sheet I will have the data validation drop-down, but for the sake of this example I've put them on the same sheet.) I will have a column that has a row for each category that exists (Column D in my screenshot). In the next column I want there to be a drop-down list in each row, where the choices are from Column B, but the only choices listed should be where the value in the Column D cell matches Column A. For instance, the only choices for Fruit should be Banana & Apple.
To make it more complicated, the number and names of the categories will be changing, and the number of choices will be changing. So I need this to work dynamically.
I have looked at many web pages and forum posts about how to do this, but all of them are pretty complicated. They all require me to create "helper" columns. For instance, I could create a column for Fruit, another for Veggie, and another for Dairy. In each column I could have it list only the choices for that category. But since the number of categories will be changing, that becomes a little complex to deal with. Before I go that route, I wanted to make sure there wasn't an easier way to do it. It seems like there should be a way to do what I am wanting to do without any helper columns. Perhaps there's a formula I could use in the data validation that would do it? I don't have a lot of experience with data validation, so I don't quite understand all the ins & outs of it.
Any help would be appreciated.