Drop Down Menu to Create Lists

analyticalchemist94

New Member
Joined
Jul 28, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hey guys. I wanted to know if anyone knew how to code in a drop down menu that could separate a column full of variables into specific lists. For example.

If I have the following in column A: Abe, Bill, Charlie, Darlene, Emily, Frank, Gloria, Henry, Irene, Jack, Kelly, Larry, Melanie, Nathan, Olga, Paul, Quinten, Renee, Suzie, Tom, Ursula, Valerie, William, Xavier, Yves, Zelma

But now let's say I want a drop down menu that has the following: girls, boys, vowels, consonants.

If I pick vowels then the Excel sheet will hide all names except: Abe, Emily, Irene, Olga and Ursula
If I pick girls then the Excel sheet will hide all names except: Darlene, Emily, Gloria, Irene, Kelly, Melanie, Olga, Renee, Suzie, Ursula, Valerie and Zelma

You can do the same for boys or consonants.

On a particular assay I'm working on I have about 600 different compounds in a list I need to sort 15-20 different ways. I have been using buttons at the top where I can click the button and it hide the compounds not associated with that button, but I haven't been able to figure out how to code in for a drop down menu. When I first started this assay there were only 2-3 variations, but now I have 15-20 and the buttons are too numerous and unmanageable.

Does anyone have any ideas about this or have experience implementing it. Is this possible?

Thanks for any help!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Ahhhh good question and a key piece I left out! The way I have it set up with the buttons at the top is that say in column A I have the names as outlined above. So for example, Emily would be sorted in the "girls" group and the "vowels" group. In column B I would have a letter, i.e., ABCDE and then I assign the button a letter. So say I have a button labeled "Girls" and I assign it the letter "A". Then if the letter "A" is in column B, then EXCEL knows the rows to hide are the ones that don't have the letter "A" in them.

I know you can also put a filter into the column and maybe that's the easy solution here, but I wasn't sure if I could replace my buttons at the top with a drop down menu that would do the same.

I hope this makes sense. It's one of those "I know what I want to do" but not exactly sure how if I'm explaining it correctly! Thanks for taking a look.
 
Upvote 0
You could put the code that makes you buttons work into a worksheet change event tied to the dropdown list.
 
Upvote 0
but would this allow me to get rid of the buttons entirely and use the drop down menu exclusively to sort?
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,438
Members
449,083
Latest member
Ava19

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