Dropdown list with a group.

willoughby

New Member
Joined
May 6, 2009
Messages
6
Hi All

Been a while but I'm stumped. I have a large list of data with a dropdown list that filters out what I need. Only issue is I would like to group a few options preferable using one list.

My Example List

Apple
Banana
Orange
Cat
Dog
Mouse
Fruit
Animal

Trick I would like to know how to do is when I select 'Fruit' from the drop down I get the results from Apple,Banana & Orange. Much the same with 'Animal' Happy to add an additional column to the data. Any ideas?

Regards

Willoughby
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi, the link below may help you get started.

https://www.contextures.com/xlDataVal02.html

Thanks, but not sure I follow. Are you saying that I need to Create Dependent Drop Down Lists?
That I know how to do but figured there must be a way to select one item from one list and get the filter to return values based on a group.

My initial thoughts were to add an extra 'flag' col to the data but was wondering if there a more elegant way.

Kev
 
Upvote 0
Hi, you might need to explain a little bit more about what exactly this dropdown box is and how you are currently using it to apply filters, and for the groups, how you know which subset of items belong to each group.

My initial thoughts were to add an extra 'flag' col to the data but was wondering if there a more elegant way.

Without knowing any of the details - this sounds like a sensible and reasonable approach.
 
Upvote 0
Again think lost in translation.

For clarification, Dropdown list is
  • Data tab, click Data Validation.
  • On the Settings tab, in the Allow box, click List.

    Items on List
    Apple
    Banana
    Orange
    Cat
    Dog
    Mouse
    Fruit
    Animal


Example Data

1
2
3
4
5
6
7
8

<tbody>
</tbody>
AB
ThingNumber
Apple321
Banana321
Orange543
Cat535
Dog 347
Mouse535

<tbody>
</tbody>

<tbody>
</tbody>

If 'Cat' selected from the drop-down list. Then I expect to see one line.

Cat535

<tbody>
</tbody>

If 'Animal' is selected I expect to see three lines.

Cat535
Dog347
Mouse535

<tbody>
</tbody>

I got it working by adding a flag to the data but as above would be nice to know if there was a better way.

W
 
Upvote 0
I got it working by adding a flag to the data but as above would be nice to know if there was a better way.

Hi, it's difficult to say, your post still lacks detail.

If 'Cat' selected from the drop-down list. Then I expect to see one line.

Cat535

<tbody>
</tbody>


Where do you expect to see that one line - what method are you using to show it?


If 'Animal' is selected I expect to see three lines.

Cat535
Dog347
Mouse535

<tbody>
</tbody>


How do we know that cat, dog, and mouse are the "Animals"?
 
Upvote 0

Forum statistics

Threads
1,214,974
Messages
6,122,536
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top