Change sheet source dynamically - excel

How to change Excel sheet source dynamically depending on particular values?
I am developing an Excel sheet. Depending on one dropdown value, fields of other dropdown should change dynamically.
Suppose I choose one value from dropdown1, dropdown2 should get certain column from "Sheet2" and if I choose another value from dropdown1, dropdown2 should get certain column from suppose "Sheet".
How can I achieve this?
This should be related to Excel formulas I guess.

Just follow this tutorial
Create lists
Give lists a name
Use data validation to create dropdown
Use indirect when creating new data validation

Related

Create Drop-Down List Using a Formula (Without Data Validation)

One can create a list using the data validation tool. However is it possible to do the same using only a formula (not VBA)?
If I have a named range consisting of several cells (Names), I can reference this in another cell (=Names). However only the contents of the first of these cells will appear, and no drop-down menu presenting all options will be created.
Is there a way to do so without VBA and without data validation?
Thanks
As I know it is not possible to create a drop down list with formula instead of data validation but below method may be used to achieve your goal (Method already also mentioned by #PermaNoob in the comment section.)
A page layout like this:
Data validation formula as following:
=IF($A$2="List",$C$2:$C$8,$D$2:$D$8)
And also alert option will be disabled ( to be able to add custom data):
When you write "List" in the cell "A2" you will get the Column C in the drop down list and if you do not write anything in cell "A2" you will get D column in the drop down list.

Making a Drop Down list in Excel?

I have an excel sheet that I need to pull information from. I have a name column that I want to be selectable in a drop down menu, but when it is selected I need it to bring up the rest of it's row of information that is associated with it. I am also trying to format the information in a different way than just in a straight row across.
Add a new sheet and list all variations
Select variations and add a name to selected range
In the cell where you want to see the dropdown select validation from the data tab
Select LIST and use your named range as a reference
also check here:
http://www.techrepublic.com/blog/microsoft-office/how-to-add-a-drop-down-list-to-an-excel-cell/

Excel Dynamic Drop Down Menu

Hi I'm just wondering if there is a way to in Excel have a drop down menu that changes with the number of entries in the column.
I am currently using:
Data - Data Validation - List, to create my drop down menu.
As I am adding more entries below the Source range of the List I was wondering if there is a way to dynamically update this range? I have written VBA forms and can achieve a similar result using those but I am just wondering if this can be streamlined by not having a form popup for my search.
Also is there a way to have entries only added to the list based on a condition?
Thanks for any help.
You would use a dynamic named range. So let's pretend you have a worksheet specifically designated for your dynamic drop-down list source. We'll call the sheet "List" and we'll put the entries in column A starting in cell A1.
Now create a named range (we'll name this range listData) with this formula:
=List!$A$1:INDEX(LIST!$A:$A,MATCH(REPT("z",255),LIST!$A:$A))
Steps to create a named range: Go to Data -> Named Range -> New
Now for your data validation list, simply set it to the named range:
=listData

Excel: Creating a dropdown using a list in another sheet?

Let's say in Sheet1 I have a list of codes ("AA", "QF", etc).
In Sheet2, I want a particular column to have cells that, when you click them, have a dropdown that consists of values from the code-list on Sheet1. (so you could fill the value of the cell with AA, QF, etc).
Is this doable?
As cardern has said list will do the job.
Here is how you can use a named range.
Select your range and enter a new name:
Select your cell that you want a drop down to be in and goto data tab -> data validation.
Select 'List' from the 'Allow' Drop down menu.
Enter your named range like this:
Now you have a drop down linked to your range. If you insert new rows in your range everything will update automatically.
Yes it is. Use Data Validation from the Data panel. Select Allow: List and pick those cells on the other sheet as your source.
That cannot be done in excel 2007. The list must be in the same sheet as your data.
It might work in later versions though.
I was able to make this work by creating a named range in the current sheet that referred to the table I wanted to reference in the other sheet.
Excel has a very powerful feature providing for a dropdown select list in a cell, reflecting data from a named region. It'a a very easy configuration, once you have done it before. Two steps are to follow:
Create a named region,
Setup the dropdown in a cell.
There is a detailed explanation of the process HERE.

Creating a drop-down list in Excel

I'm changing an old Excel spreadsheet and have got a user-request to add a drop-down list to a date selection field.
Data Validation is already turned on for the cell in question with a "<=TODAY()" clause (the sheet contains information on production efficiency, no idea going forward since data is not there).
The user requests a drop-down listing the past seven days. I can make a list and enumerate it in VBA, but I am having difficulties coming up with a way to apply a drop-down list to a cell without using Validation.
Is this possible?
Here are some ways you can try:
Add a datepicker to the cell (and keep the formula validation you put)
a. See some standard way on MSDN
b. or with an addin on this blog
Change dynamicaly your validation to a dropdown list when the Workbook is opened or the worksheet activated with an event procedure and add another event procedure OnChange to check if the value entered is before today.
Why not replace the existing data validation rule with a list rule? Just create a new sheet and enter in A1:A7
=TODAY()
=A1-1
...
=A1-6
Then set your data validation rule to "List" and set the Source to A1:A7 on the new sheet. Then hide the sheet just to keep it out of the way. This should preserve the old validation requirement.

Resources