Excel: Dropdowns and IF feature - excel

I have a cell with a dropdown menu of 20 items in a list. Upon clicking one of these 20 items, I want the next cell to produce another drop down with a list of options. The list in this dropdown will differ depending on what choice is taken from the first drop down. Following this, I want the chosen option in the second dropdown to output a number in another cell. Thanks.

You'll have to start by creating Named Lists of dependent list, and use INDIRECT function in Data Validataion -> List to achieve dependent drop down list or cascading drop down list.
Its explained in detail with screen shots here!
Refer this link if you are using older Excel version.

Related

Patch Columns in a SharePoint List using Dropdown in PowerApps

I have been doing a Canvas App where I puta a Dropdown associated to SharePoint List (1), that contains all the items that I would like to choose in one row each, this is intended to choose the right column for another SharePoint List (2). For this I want to put a value in a Text Input and Patch the SharePoint List (2), by using SharePoint List (1) as my Column and Text Input as my Value.
As long as the names in the drop downs match your datasource names correctly you shouldn't have an issue achieving this.
Assuming below dropdown 2 is your sharepoint lists (2), Dropdown 1 is your column to patch (1) and TextInput1 is your value you wish to patch
Patch(Dropdown2.SelectedText.Value,Defaults(Dropdown2.SelectedText.Value),{Dropdown1.SelectedText.Value:TextInput1.Text})

Dependent excel list doesn't change when the main list item changes

As an MS-Excel beginner, I have created a 'dependent drop-down list' by data validation, using the below formula.
OFFSET($A$1,1,MATCH($A11,$A$1:$D$1,0)-1,COUNTA(OFFSET($A$1,1,MATCH($A11,$A$1:$D$1,0)-1,7,1)),1)
Now the problem is that when the selected item in the main list is changed, the dependent list still shows the previous items, and not showing any error until I go and click the drop-down menu to select from.
This may cause mistakes.
Is there any solution, preferably by not using VBA?

How to use Indirect and substitute formula for dropdown list?

So I have created 2 dropdown menu one for the operating client and another for the operating site which filters down the dropdown list which are only applicable to "BlackPearl Resources Inc." (as shown below).
The 2 dropdown menu only works when the operating client name is one word and to get around it the only way is to insert underscores between each word which seems to be an restriction on the Namebox field. Without the underscore the Operation site dropdown menu doesn't work.
The picture below shows how they are linked in a separate worksheet with the leftmost column being the Client's list and subsequent right hand columns being operating site. I used the "Name from selection" method under formulas to group the dependable lists into the dropdown menu. Here is a link to the tutorial I used as reference: Creating a Dependable dropdown list
So to get around this how would you implement the Indirect and substitute function?
Suppose you have the following named ranges:
Operating_Client: all your client names;
BlackPearl_Resources_Inc.: all operating sites under this client;
SonocoPhillips_Canada_Resources_Corp.: all operating sites under this client.
A quick way of adding named ranges is to select the ranges you want to name including the header of the row/column and then press Ctrl+Shift+F3.
Once you have all the named ranges ready, go to Data Validation to set up the drop down list as shown below.
The formula for the Source of the Operating Site is:
=INDIRECT(SUBSTITUTE(Operating_Client," ","_"))
You can choose to replace Operating_Client in the above formula with the actual cell where you have put the drop down list for Operating Client but putting in a name is better than putting in a cell reference.
Cheers :)

ms excel - data validation for 2 drop down list

I'm looking for the solution in excel data validation for 2 drop down list.
When I choose 1st drop down list 2nd drop down list will auto populate the correct value from table. If user choose 2nd drop down list 1st drop down list will auto populate the value also.
Can someone help me on this issue ?
I attach the sample file for my problem.
enter image description here
enter image description here
thanks!
Sample File
Trying to do a two way I don't think is going to work in the way you are trying so I am not surprised the examples you found were for one-way. I am open to being corrected.
You could hack around it for example using two form control listboxes linked to the same cell so a selection in one updates the other.
Then because an item might be out of view listbox underneath have two cells which use the linked cell to index back into the source lists.
In the example above, there are two list boxes from form controls in developer tab (customize ribbon > add developer tab.
Developer tab form control - 2nd from the right
You add two of these in to the sheet.
Right click format control on each one
Set the input range to the range containing your list of values for that listbox and set the linked cell e.g. G1
Ensure that whilst you select different input ranges for each list box, they should have the same linked cell e.g. G1.
Underneath the listboxes put a formula which uses the linked cell G1 to index back into the source lists for each listbox so you can retrieve the selected value and have it visible, in case not visible within listbox.
Example testing:

VBA - MultiSelect in a DropDown

I have a Requirement Where a bundle of Items needs to be displayed in the Drop-Down List. The Problem for me is, because there are so many Items inside it, I need to Use Combobox over List-Box. The Reason for that is, if I know the name of the item, I can type in the search box of the drop-down and get my Item, Combo-Box allows you to do that. But the List Box doesn't allow the User Input.
Now, Because there are some which names cannot be remembered, I need to use the Scroll bar in the drop-down to pick up the time. This is hectic, to select a single Item. I would like to have the facility of Using a Multi-select in this case.
So the Requirements are below:
1) A Drop-Down that allows the user to type in part of the Input(Say Ref for Refreigerator)
2) A Drop-Down that allows the Multi-select.
Obviously, I don't want to have two drop-downs Splitting the data.
I am open to other Suggestions.
Please Share your thoughts.

Resources