+ Reply to Thread
Results 1 to 5 of 5

INDIRECT will not post Text string to Data Validation for Named Range on another Workbook

  1. #1
    Registered User
    Join Date
    03-29-2006
    Location
    Flathead Lake, Montana
    MS-Off Ver
    2003 and 2010
    Posts
    13

    INDIRECT will not post Text string to Data Validation for Named Range on another Workbook

    I am having a problem using INDIRECT that I can not seem to solve.
    I have two separate workbooks.
    Workbook #1 contains the data columns, so I will call it DataWkBk.xls (I used excel 2003 settings).
    Workbook #2 contains the working formulas in which I wish to have three drop down menus, I will call it FormulaWkBk.xls.
    There are three sequential dropdowns on the formulas workbook.
    The user first selects from a list of categories that are a dropdown of data entries from Workbook #2.
    Whatever the selected option in the first drop down menu is, determines which list will appear on the second drop down menu.
    Standard stuff for the INDIRECT function.
    But the INDIRECT function only seems to work if I define the EXACT range of cells on the second workbook.
    The following example works, as I define the exact cell range on the second workbook (DataWkBk.xls):

    Workbook #1 Data Validation entries for the first dropdown menu is:
    DV_Categories.jpg
    This works fine and the user selects from the list of possible Categories of products that then appear in this cell, call it cell A1
    Cell A2 then is intended to provide a dropdown menu based on whatever text string appears in cell A1.
    So its Data Validation entries are this:
    DV_INDIRECT.jpg
    This will work fine as long as I define the EXACT range of cells that are to be looked at on the second workbook.
    This works:
    Specific_Cell_Range.jpg
    Unfortunately, as with all data files, the rows and columns increase and change as more data is added.
    So I set up a Named Range on workbook #2, one Named Range for each possible category of products.
    I then cross-referenced these named ranges (successfully) in workbook #1.
    But when I use a Named range with the INDIRECT function it does not work, I get a "results in zero" message:
    Named_Range.jpg
    Yet, when I manually enter the cross-referenced Name, it works just fine.
    I replace the =INDiRECT(A1) with =CLIMATE (or any other Named Range) and it works just fine.
    I defined the names as follows using Name Manger (Excel 2010) Refers to: DataWkBk.xls!Climate
    Direct_Usage_of_Named_Range.jpg
    I believe it has to do with INDIRECT not copying strings of text, and the Named Ranges need text.
    Is there some other function beside INDIRECT that I can use to copy the text selected in cell A1 into the Data Validation formula of cell A2?

    ..........Carl

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: INDIRECT will not post Text string to Data Validation for Named Range on another Workb

    INDIRECT does not work with dynamic ranges, only specific addresses. there are a couple of tips in the July competition forum about cascading validation lists-you may want to check them out. note also there is mention of using EVALUATE which does work with dynamic lists.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: INDIRECT will not post Text string to Data Validation for Named Range on another Workb

    Take a look at this thread for ways to overcome the problems you face:

    http://www.excelforum.com/july-compe...t-problem.html

    Hope this helps.

    Pete

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: INDIRECT will not post Text string to Data Validation for Named Range on another Workb

    Instead of using INDIRECT(A1) you need to create a named range, called say DV_List and in the refersto box enter:
    =EVALUATE(A1)
    then in the DV source box for the cell use =DV_List
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    03-29-2006
    Location
    Flathead Lake, Montana
    MS-Off Ver
    2003 and 2010
    Posts
    13

    Re: INDIRECT will not post Text string to Data Validation for Named Range on another Workb

    The EVALUATE (A1) in the "RefersTo" box and setting Data Validation to equal the Name I created in Name Manager did it perfectly. Thx\. I will mark this thread solved.

    Thanks for the GREAT ideas.

    .......CarlEaston

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1