My problem is the following.
I have two tables.
The first table is a guest list where the information on who is the guest and how many beds he need is stored. Screenshot
And the second table contains the Apartment names and the number of provided beds.
Now I want to make a dropdown list in the guest list table where only Beds are shown that provide the right amount of beds. And after a Apartment is selected it cant be picked a second time.
Can someone provide me a code for this solution?
Thank you very much!
There is functionality in Excel to use Dropdowns, to do this you need to identify your drop down requirements as shown below. Only include items the dropdown list if these not going to change.
I recommend to create a new tab in your excel workbook for list, then you can reference this in cell you want -https://support.microsoft.com/en-us/office/video-create-and-manage-drop-down-lists-28db87b6-725f-49d7-9b29-ab4bc56cefc2
Dropdown list
Guest 1
Guest 2
Guest 3
Assumptions:
Sound like you need know if bed a is available based off guest drop down list. If bed is available or not it can't be selected again.
I will let you attempt this but you can try and use IF Statement or VLOOKUP.
Related
I am trying to do sector classification for GICS sector. GICS structure consists of 11 sectors, 24 industry groups, 69 industries and 158 sub-industries. the below link gives the sector classfication
https://en.wikipedia.org/wiki/Global_Industry_Classification_Standard
can i create a drop down list like the attached image using data validation and name range function ?
like this with a vba button to refresh
On the web there are many step-by-step guides to create interdependent validation drop-downs. This is one of them. Working your way through the instructions is serious work. To help you on your way I have created a starting point for you.
The picture shows a table named Industry_Groups. It has one column for each group, and in this column are listed all the industries in that group. Now you can create a drop-down with all the column captions which would enable you to select any of the industry groups. This drop-down would have the list specification
=INDIRECT("Industry_Groups[#Headers]")
A dependent drop-down would have the list specification given below.
=INDIRECT("Industry_Groups["&A10&"]")
As you see, it takes the referenced table column name from cell A10, which is occupied by the first drop-down. Therefore the list in the second drop-down will change depending upon the selection in the first.
Of course, whatever can be selected in the second drop-down is nothing but the name of another list in another table. Each of them would name a table like the one shown above - literally hundreds of them. They have to be created before you can start on the programming.
Talking of programming, it seems that you tried to create a VBA based system that would generate the lists on the fly. No doubt that is possible but it would require some serious programming for which your attempts do not show an aptitude. The advantage of the system I show you here is that you can create and implement it with your own resources. You know, it's the story of the sparrow in your hand and the pigeon on the roof.
I am currently trying to display some manager/employee names based on business unit.
Each Business Unit could have multiple managers and multiple employees.
My question is can VLookup or any other method return a drop down list to select a certain manager/employee based on the Business unit selected?
Please see image below to see the layout and expected output.
I am hoping to use 3 drop down menus which when the business unit is selected to be able to auto populate first employee and manager in the list but also be able to have drop down menu for both to select other employees/managers etc.
Thank you.
screenshots
screenshots
screenshots
Please find my Excel-sheet in which I modulated a possible solution via the following link (shared on OneDrive):
https://cronos-my.sharepoint.com/:f:/g/personal/oortsja_cronos_be/EuUIF6pW95xGtcA0gQjwtIkB_x4LCc8oWks9VwoVTfrhJA?e=7fO6Dz
To summarize how I got to this solution:
I made different tables based on the data you provided (Business Unit > Manager > Employee). Using Name manager (see example), I gave those tables specific names that relate to their respective Business Unit > Manager > Employee.
Using =INDIRECT(), I reference those tables based on the names I gave them. E.g. table Ireland (Business Unit) contains values "John" and "Keith". Based on that output, using =INDIRECT(), "John" for example references table John (Manager) which contains the value "Mary" (Employee)
Basically, in my solution the key is using =INDIRECT() referencing multiple tables, VLOOKUP doesn't suit your needs in this specific case.
I'm wondering if it is at all possible to use Data Validation in Microsoft Excel (2007) without creating a Drop Down list.
I'm currently creating a seating plan for work. I want the user to have the ability to freely type in the name in a cell (Desk). There are 7 teams of approximately 10-12 people. so finding a name in a long list would take up too much time. however the name typed in the cell has to be be an exact match from a list stored else where in the spreadsheet. The reason for this is i use a formula to show if everyone has been seated or not.
if a name is typed in and its not an exact i would like for an error message to pop up.
Any ideas if this is even possible?
im open to VBA. but a complete noob when it comes to VBA.
Thanks in advance.
Tom
To get DV without the drop-down, use the Custom > Formula option. Here is an example:
Only the set defined by the formula will be accepted and no drop-down will appear when the cell is clicked.
I'm working on a user form in excel vba. The purpose of the user form is to make data entry more efficient. The data that is being entered is for shoe products. Basically a "parent" of the data is made in one row. The proceeding rows, or what I refer to as children/variations, have the exact same data except certain fields(columns) will be variations of the parent and each variation will have a unique identifier.
For example: say we're entering data for "shoe123". The parent data would be like this
Title Sku
Shoe123 S123
Then the children would be in the row underneath with the same data except the variation size will be tagged at the end of some fields as well as a unique identifier for each variation. Theyd look something like this.
Title Sku
Shoe123 10.5 s123 10.5
Shoe123 11 s123 11
Uniqueid
09876543311
09876543321
So at this point I have been able to enter all the parent data in the form and transfer it to the appropriate column. I'm trying to figure out two things.
How can I code the user form to allow the user to enter the number of variations to create? and then based on the number the user enters, populate that number of combo boxes with pre filled size selections with text boxes next to each combo box to enter the unique identifier?
How would I copy and paste all the parent data with the variation data for each size selected as well as the unique identifier for each variation?
so far I'm thinking I'll need to use arrays for the copy and paste part. I just need some direction. Any help is greatly appreciated!
Thanks Everyone
I understand from your question that you are trying to create a database. If this is correct I would advice you to try and create this in Access. In Access it is a lot easier to link parent data to children. It will also safe you all the time you would need in Excel to code the userforms, etc. as this is (almost) use-ready provided in Access.
If you are determined to create this in Excel, perhaps you could show the vba-code you have so far?
So i have one sheet in excel where i want a dropdownlist to be cascading from Company and then choose what ever products that is connected to that company name from antoher sheet.
As you can see on the image. I want Company to be a dropdownlist with different companies. Then i want to be able to press on productcategory and that should also be a dropdownlist and it should cascade from company and give me all the options from the table below what shows products and company and i want it to show me all the products for that specific company.
How do i do that?
This is a three-level dependent data validation scenario. It's a bit of work, but it can be done with named ranges and the Indirect() function.
Debra Dalgliesh has a step by step tutorial here:
http://www.contextures.com/xlDataVal02.html
If you get stuck, pipe up.