excel help.png
I am trying to figure out a formula for data validation.
I want cell H9 to give me drop down options for anything that show in the 1st table at the top in the Disposal Types for that location.
Thank you!!!
excel help.png
I am trying to figure out a formula for data validation.
I want cell H9 to give me drop down options for anything that show in the 1st table at the top in the Disposal Types for that location.
Thank you!!!
you can find a lot of examples on the internet
try:
https://trumpexcel.com/dependent-dro...list-in-excel/
https://www.excel-easy.com/examples/...own-lists.html
Here is a concrete example based on your picture. In the attached workbook I have used the same row/columns as you provided in your picture. I have populated only the subset of cells needed to demonstrate the solution. As follows:
DisposalTypeDropdown.png
I used a "helper" range in K2:K6. For simplicity this should be in the same set of rows as your first table. In K2 copied down to K6:
This simply takes the "Disposal Type" value if "Location" is WestTest or blank otherwise.Formula:Please Login or Register to view this content.
B16:B19 are the values to be used in your dropdown. In B16 and then copied down:
This is an array formula and must be committed with CTRL-SHIFT-ENTER. It takes the helper column values, removes duplicates and and shuffles values upwards to eliminate any blank rows in the helper column. Copy the B16 formula down for as many different "Disposal Types" as you have. Note - this group of cells can be relocated wherever you like.Formula:Please Login or Register to view this content.
Create a named range WestTestDropdown defined as follows:
This will be used to define your H9 dropdown list values. Its sole purpose is to eliminate blank entries at the end of the dropdown list that would occur if the B16:B19 range was used directly.Formula:Please Login or Register to view this content.
Finally in the Data Validation List, for "Source" type =WestTestDropdown
The attached workbook implements the above. Hopefully there is enough info here to allow you to implement something similar in your real workbook.
Let me know how it goes.
Geoff
Did I help significantly? If you wish, click on * Add Reputation to say thanks.
If your problem has been resolved please select ?Solved? from the Thread Tools menu
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks