Multiple dependent drop down lists to the same database

pilgrimen

New Member
Joined
Feb 17, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi,
New user here with a question that I haven't seen the answer to. Not native English speaker and not that experienced with excel so I might be using the wrong words or stuff like that.

is a video that goes into the question a bit but the tricky part is that I want to have as many possible entries as possible for the user.

Here's a picture of the database I've created (in Swedish) and some colorful rectangles to try and show the desired funcionality:
1645100376583.png

I want it to be possible for the user in the first drop down list to choose "Mark", in the next one "Lekytor", in the next one "Lekutrustning" and so on.
What I've tried this far is the method in that youtube video with B2=UNIQUE(FILTER(Huvudgrupp;Huvudgrupp<>"")), C2=UNIQUE(FILTER(Byggdel;Huvudgrupp=B2)), D2=UNIQUE(FILTER(Åtgärdsgrupp;Byggdel=C2)) and so on (Where these formulas are in a different sheet than the database).
This method doesn't seem to be possible without the (from the above linked youtube video):
1645099934769.png

I tried to paste the whole formula =UNIQUE(FILTER(etc)) into the data verification list but excel can't manage that.
As I potentially have 100 or so spill lists to take in consideration if all the rows should have their own "drop down prep" areas, quite much work seems to be needed.
1645100547841.png

Here's a picture of how I want the user interface to look like.
All of the headers and info refers to a book that we can put in information from when needed so my plan is to make the database open so it can grow when people need to put in more stuff.

Can I do all of this without VBA or is it needed?
Have I been at all coherent with what my question is or is it something that needs to be explained further?

Many thanks in advance for any help at all.
 

Attachments

  • 1645099525840.png
    1645099525840.png
    58.3 KB · Views: 9
  • 1645100035735.png
    1645100035735.png
    5.6 KB · Views: 7

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
@pilgrimen
See if this helps:
 
Upvote 0
@pilgrimen
See if this helps:
Thank you! Will take a look, didn't find that one when I searched but not that easy to find everything... :)
 
Upvote 0
@pilgrimen
See if this helps:
I implemented it and it works! YAAY!
But, I noticed that excel takes a while to think (like 5-10 seconds) every time I've chosen something in the list.
My table is something like 200 rows as of now and in the future it will probably grow to 800 or something.
Can that have anything to do with it running slow or have I done anything weird when I applied your code?

I'd like to have the possibility to have the first column blank, is that doable?

Here's a link to the file.

 
Upvote 0
Can that have anything to do with it running slow or have I done anything weird when I applied your code?
You set the table up to last row of the sheet (i.e row 1048576)!!!. That makes the code significantly slow. Just set the last row to about 10 rows below the last row with data, and when you need to add new data then just drag down the small blue arrow at the bottom right corner of the table.

I'd like to have the possibility to have the first column blank, is that doable?
What do you mean? Can you elaborate?
 
Upvote 0
You set the table up to last row of the sheet (i.e row 1048576)!!!. That makes the code significantly slow. Just set the last row to about 10 rows below the last row with data, and when you need to add new data then just drag down the small blue arrow at the bottom right corner of the table.


What do you mean? Can you elaborate?
Yeah, that was my guess too. :)
I changed here:
1645205461099.png

but then I got an error here:
1645205493830.png

It seems like I'm defining the range in some kind of faulty way..
How should I define the range?
In your example the ranges was defined as A:A, B:B and so on (or other letters) so I just did like had done.

I see that I wasn't very clear in my question.
I'd like the first data verification list (the one to the left) to be blank until a choice is made. I can just add an underscore in one of the rows in the DATA-sheet or is there a better way?

Again, thanks again for your help!
 
Upvote 0
You set the table up to last row of the sheet (i.e row 1048576)!!!. That makes the code significantly slow. Just set the last row to about 10 rows below the last row with data, when you need to add new data then just drag down the small blue arrow at the bottom right corner of the table.

By setting up the table, I didn't mean to set it up in the code but in the sheet (i.e sheet data). Here's what I meant by "Just set the last row to about 10 rows below the last row with data,":

table arrow.jpg

you can see I set the blue arrow at the bottom right of the table is at row 218, it means that the last row of the table is row 218, whilst in your workbook the blue arrow is at row 1048576, it means that the last row of the table is row 1048576.
To change the last row of the table, just click on the blue arrow and drag up or down.

I'd like the first data verification list (the one to the left) to be blank until a choice is made.
When you first create the data-validation, it should be empty, then copy down as needed. But if there's already a value then just delete them, the data validation will be intact. Deleting a cell value will not remove the data validation in it.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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