+ Reply to Thread
Results 1 to 13 of 13

INDIRECT and drop down menus

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    INDIRECT and drop down menus

    In the attached file I have a sheet named 0001-2011
    On this work sheet I have a table that has drop down menus under Artikl, Dimenzije, Dimenzije.
    I'm using
    Please Login or Register  to view this content.
    in the drop down menu under Colum Dimenzije
    And when i pick Cev under colum Artikl I can't pick anything under colum Dimenzije.
    Does anyone know why? I'm working my *** of here

    Please help.

    Denis
    Attached Files Attached Files
    Last edited by stojko89; 12-30-2010 at 08:43 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Problem with INDIRECT and drop down menus

    You can't use INDIRECT with a Dynamic Named Range directly.

    With D4 the active cell create another named range as follows

    Please Login or Register  to view this content.
    Then modify D4 Validation Source to:

    Please Login or Register  to view this content.
    another alternative is to use a CHOOSE construct in the Source for the DV listing each range individually (thereby avoiding need for INDIRECT altogether) but this can be cumbersome to manage.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Problem with INDIRECT and drop down menus

    Should add, another option would to be define all of the options using a non dynamic range and then use a dynamic construct in the validation itself, eg:

    Please Login or Register  to view this content.
    then for your Validation cells (ie with D4 etc selected) you can have a Source of:

    Please Login or Register  to view this content.
    obviously above is based on UK Delimiters etc...

  4. #4
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Problem with INDIRECT and drop down menus

    Ok...I don't understand your 2 options

    Can I use Colum Artikl to be dynamic and in Colum Dimenzije the drop down menu not to be dynamic so I have it like this.

    Artikl:
    Please Login or Register  to view this content.
    And under Colum Dimenzije
    Please Login or Register  to view this content.
    but it still doesn't work.

    And why when I make a dropdown menus and select cells like A2:A15 and the Cells A2:A6 have stuff written in them and cells from A7:A15 are empty.
    So when I make a drop down menu and I select that it doesn't count empty Cells.
    When I press the drop down menu the empty cells are there.
    Why is that?
    Or what would be the best way to do this?
    I would need them bouth to be dynamic, couse I would add new stuff under bouth colums most of the time.

  5. #5
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: INDIRECT and drop down menus

    Ok so this somehow works now, but my problems still are the empty cells.
    What can I do so it wouldn't count the empty cells in the drop down menu?
    Couse If I pick cells from like A1:A100 and only 15cells have data in it all the other would be empty, but it would allow me to add new data when I would want and I wouldn't have to expand the cell picks every time I added data to a cell from A1:A100 if you know what I mean.
    You can see in the attachment.
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDIRECT and drop down menus

    Quote Originally Posted by stojko89
    I don't understand your 2 option
    Did you try them ? I thought the instructions were fairly straight forward myself (delimiters aside).

    Obviously it is up to you in terms of how you go about resolving the issue but the prior suggestions do as requested.

    For the sake of confusion I've attached your original sample file with both the Evaluate and Dynamic Source suggestions in place
    (the 2nd option is demonstrated in Column J so you can see both approaches would return identical result)

    Note: the use of XLM call in the first option requires .xlsm file extension in XL2007+
    Attached Files Attached Files

  7. #7
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: INDIRECT and drop down menus

    I will use the XLM version thank you very much

  8. #8
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: INDIRECT and drop down menus

    I just have to say it work they way I wanted it to and thats realy great Thank you very much DonkeyOte

  9. #9
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: INDIRECT and drop down menus

    Hello again.

    I just have one problem, How can I make the
    Please Login or Register  to view this content.
    Dynamic so when I copy the table from list 00001-2011 to 00002-2011 the Evaluation would change to
    Please Login or Register  to view this content.

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDIRECT and drop down menus

    Try modifying the Name RefersTo to:

    Please Login or Register  to view this content.

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,984

    Re: INDIRECT and drop down menus

    Using the ! reference is unreliable in my experience. You are better off using INDIRECT.
    Everyone who confuses correlation and causation ends up dead.

  12. #12
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: INDIRECT and drop down menus

    Interesting.

    @stojko89, on that basis given you need the B4 reference to be relative in terms of row, with D4 the active cell refine the RefersTo of the name to:

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: INDIRECT and drop down menus

    Yes!!! DonkeyOte you're my hero :D
    Thanks alot man

+ 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