+ Reply to Thread
Results 1 to 15 of 15

Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    I can use a dynamic named range and a direct reference to the name and the DV works.

    I can use a standard named range (not dynamic) and an INDIRECT() reference to a cell with the name of the range in it and the DV works.

    But if I try to use a dynamic named range and an indirect reference to a cell with the name of the range in it, the DV fails.

    Any workarounds out there? This project includes a LOT of DV lists, getting them to self-maintain is important if I can do it.

    (Cross-posted)
    Attached Files Attached Files
    Last edited by JBeaucaire; 09-26-2009 at 01:32 PM. Reason: Added cross-post link
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    some info here
    http://www.dailydoseofexcel.com/arch...ynamic-ranges/
    and some other ideas here
    http://www.mrexcel.com/forum/showthread.php?t=315470
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Both of those threads appear to simply confirm the problem, not any usable suggestions.

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

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    I think both threads (c/o Aladin & Martin Kral (MS XL MVP)) make reference to the possibility of CHOOSE ...

    Using your file if you were to create a named range containing your list names, eg:

    Name: _List
    RefersTo: {"Colors","Colors2"} ... or range if preferred / easier
    Then

    Please Login or Register  to view this content.
    Now this may not be viable for you pending no. of named ranges in play given CHOOSE limitations but it is a workaround albeit perhaps not the most elegant...

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    It's a custom ordering sheet where each "line" of products has a drop down box of customization options for that line. We've only finished the first of 12 categories and we're already at 15 different option lists.

    The option lists all have to appear on the ordering sheet in the same cell, thus we've added a "category" column to the product database and when a code is entered on the order form, it populates the dropdown with the "list" matching that category. We do this currently with an =INDIRECT($M14) in the data validation cell for that row.

    The problem I'm trying to resolve for them: The lists will change fairly frequently. It's a big win if the girl maintaining the order sheet only needs to add/delete items from the lists and the lists adjust themselves to match. Right now, they have to manually adjust the named ranges as specific references, too.

    =========
    Perhaps I'm just being dense. I've looked at the CHOOSE command and I realize I can use it in a cell, but the solution I need has to work as a Data Validation criteria.

    As it stands, I'm not positive I can restructure this to keep the # of possible lists under 30. But trying a smaller version of what the final formula would be, I got this:

    =CHOOSE(MATCH($M14,$AP$8:$AP$37,0),List5,List1,List11,List10,List15,List4)


    But I get an error when I try to put that into a Data Validation in column C. Have I missed something for using CHOOSE() in the DV part of this?
    Last edited by JBeaucaire; 09-26-2009 at 10:25 AM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    you dont have to worry about 29 limit coz it should work with nested choose
    =IF(A1>29,CHOOSE(A1-29,"martin30","martin32","martin33"),CHOOSE(A1,"martin1","martin2","martin3",...."martin29"))
    as per your formula it works ok with the small example your attached spread sheet
    Attached Files Attached Files

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Ah, thanks Martin and Don, I understand what I did wrong originally. Yes, I can see how this would solve the original problem.

    I would have no problem using this, but the goal, better phrased, is "to make it easier on the non-Excel-savvy girl who will maintain the lists".

    Editing all the drop box formulas on the invoice is not her job, so this would results in more confusion, plus getting into this CHOOSE formula two-nested levels deep results in more, PLUS maintaining another list of lists, ...this wouldn't be less work for her, it would be more, and more confusing.

    However, now I know how *I* can get around this limitation on my own stuff, so for that, thanks very much!

  8. #8
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    I understand what I did wrong originally. Yes, I can see how this would solve the original problem.

    However, now I know how *I* can get around this limitation on my own stuff, so for that, thanks very much!
    Would you please provide/explain the details of how you're getting around the limitation? Perhaps we could benefit as well. Thanks.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Quote Originally Posted by Palmetto View Post
    Would you please provide/explain the details of how you're getting around the limitation? Perhaps we could benefit as well. Thanks.
    I'm referring to the solution described in Martin's post #6. It works. It's a lot more work and requires customizing the DV formula each time you add a new list, but it works.

  10. #10
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    I see the thread is marked as "Solved", so i'll ask first: would it be ok if i added my "to cents" (example workbook)?

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Fine by me...post away.

  12. #12
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Here you go. This approach might have the possibility for an "Excel-savvy" person to pre-validate a number of columns, with the secretarial person just filling in the data?
    Attached Files Attached Files

  13. #13
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Yes, that's the solution offered by Don and Martin. So, we're three for three on the "Choose" Option.

    In the end, this would be 40-50 named ranges. Those CHOOSE formulas would be cumbersome beyond manageability for anyone except us. For this project, I've had to simply revert to "bigger than needed" flat ranges that the secretary can simply add to/delete from and sort to her hearts content.
    Last edited by JBeaucaire; 09-26-2009 at 06:53 PM.

  14. #14
    Registered User
    Join Date
    09-18-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    Hi

    I have found this very useful one. Now i have 3 scenarios. I have cautiously copied your formula in three different cells for validations. Formulas are as below and they are working fine interdependently.

    =CHOOSE(MATCH($G$22,Purchase,0),Plywood,BlockBoard,Adhesive,Door,Beading,Teak,Others)
    =CHOOSE(MATCH($G$22,Sale,0),Plywood,BlockBoard,Adhesive,Door,Beading,Teak,Others)
    =CHOOSE(MATCH($G$22,Financial,0),FinEntry)

    Is there any way one can club these formulas to validate a single cell instead of having 3 different cells.

    Advice very much appreciated.

    Regards
    Chandra

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Dynamic Named Ranges and Indirect Data validation INCOMPATIBLE?

    @ css0911

    Welcome to the forum.

    Unfortunately you need to start a new thread for this.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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