#1
|
|||
|
|||
Data Validation - List
Hi,
I have a drop down list on one sheet which looks at a list of peoples names on another worksheet, when I add a line in this sheet to add another name the list then searches on the worksheet it is on. For example Worksheet 1 Worksheet 2 Dropdown list List of names (A1:A50) Once I add a name to the list it searches A1:A50 on worksheet 1 Any ideas what is happening on this ? Thanks |
#2
|
|||
|
|||
That's never happened to me, but try one of these:
* Specify the sheet in the range e.g. =[Worksheet 2]!A1:A50 * Use a named range |
#3
|
|||
|
|||
Hi,
Have tried but no luck. I have 20 dropdown lists all connected to this other workbook and when I insert a new line the dropdown list I am doing it for is OK but all of the other drop down lists start to pick up the location of the worksheet it is on. Any other suggestion I can try? |
#4
|
|||
|
|||
Try attaching your sheet and I'll take a gander.
|
#5
|
|||
|
|||
|
#6
|
|||
|
|||
Where is the data validation? I don't see any. That may be due to the sheets being password protected.
FYI, you can easily attach a sheet using the Go Advanced button below. It might be easier than whatever you have used. |
#7
|
|||
|
|||
Hi,
The password is Wobwitwu2, really appreciate your help |
#8
|
|||
|
|||
OK...I see the validation now. A few questions/points of clarification regarding your original post...
Forecast IV, Column A. Correct? Quote:
Code:
='RATE CARD'!$D$2:$D$74 Quote:
What do you mean by "add a line"? Are you just adding a name to the end of the list? If you do that, the data validation range should not change at all though it would not include the added name since it is outside the range specified. However, if you insert a line within the range, the data validation range will update. I have done both of these with your sheet and that is what happened. I notice that the RATE CARD data has a filter applied. Perhaps that may be part of the issue though it's hard to say since I can't replicate it. Personally, I would use the Format as Table functionality for the RATE CARD data and name the table something logical (e.g. RateData) and specify the name of the field headers, again done logically and again avoiding spaces. I have done these things on the attached version. I called the field headers Name, Position, Rate, and Card just to call them something See if it helps. To add a name to the RateData table (which is, of course, on the RateCard tab), either right click on a cell to insert a line above it or pull down the little doohickey on the bottom right corner of the table. Now the data validation range is a whole lot more aesthetic and logical: Code:
=INDIRECT("RateData[Name]") Also, look at the formula next to it in Column B on Forecast IV: Code:
=VLOOKUP(A11,RateData,4,FALSE) Code:
=VLOOKUP(A13,RateCard!$D$2:$G$74,4,FALSE) Code:
=VLOOKUP([@Name],RateData,4,FALSE) |
#9
|
|||
|
|||
You are so right, much more clearer formula. Ive opened the file and if you now look on the drop down box in cell A13, its gone from looking at the rate card to now looking at the forecast tab.
From now on I'm naming all code areas so thanks for the lesson |
#10
|
|||
|
|||
I never changed that validation to the new one so whatever it is, and it is a mystery to me, didn't seem to change the one I did.
So I copied the validation to each alternate cell going down column A. See if it still changes. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to get Data into Validation List according to Client Name and Document Type | Maoz | Excel | 5 | 01-24-2016 01:17 AM |
Data Validation List based on Two Named Ranges | Rich18144 | Excel | 4 | 01-14-2016 04:37 AM |
Data validation list filter with range defined by OFFSET | Mango123 | Excel | 4 | 03-18-2014 02:52 PM |
How to "hard link" two adjacent cells to a data validation drop down list? | Geza59 | Excel | 10 | 10-19-2012 11:56 AM |
Conditional data validation (list drop-down) | click4akshay | Excel | 2 | 04-28-2011 01:51 PM |