+ Reply to Thread
Results 1 to 8 of 8

Dynamic dependent drop menus

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Dynamic dependent drop menus

    Hi Guys,

    I'm creating a set of linked dependent drop menus, but I'm running in an annoying problem.
    I will explain step by step what I'm doing and where I get the error from excel.


    1) the first drop menu list contains AT15; AU10; AT55.
    2) So I created a first name called : PLANT and so far so good.

    Now I need to create three names for the three options of the first drop menu.

    3) SO I created the name AT15 that should contain let's says (apple; pears; bananas)

    But I get an obstinate message error from excel telling that I cannot use the NAME AT15.
    It works if I change both the fist menu entry with into AT and I created the NAME AT but with AT15 doesn't work!! and I actually need AT15 in the menu...

    is it because the combination AT (TEXT)+ 15 (number)???
    I cannot find any other explanation.

    Could you please help me out?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Dynamic dependent drop menus

    because AT15 is a valid cell reference so Excel cannot differentiate from your named range:

    what is specific about the name AT15? try AT_15

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,302

    Re: Dynamic dependent drop menus

    It's because AT15 can be confused with a cell reference. So, you can't create a Named Range with that name, or anything that looks like a cell reference.

    Try building your Named Range name with an underscore ( _ ) as the first character
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Dynamic dependent drop menus

    thanks guys and thanks TMS I think you are 100%, but the problem is that I will use the spreadsheet with the menus to upload data directly into our system so AT_15 want work

    AT15 must be there or the upload will fail.

    any suggestions please?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,302

    Re: Dynamic dependent drop menus

    No problem having the value AT15. You just can't have a Named Range called AT15. That means you need to massage it a little to get something that is acceptable.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Dynamic dependent drop menus

    If AT15 is the drop down (in A1) then in your dependent (B1) use:

    =INDIRECT(LEFT(A1,2)&"_" & RIGHT(A1,2))

    with named range of AT_15

  7. #7
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Dynamic dependent drop menus

    thanks TMS, I didn't have time to test it, I will shortly

  8. #8
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Dynamic dependent drop menus

    thanks TMS and John, I didn't have time to test it, I will shortly ...and sorry for the late reply!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New to Excel, Dependent Drop Down Menus becoming the bane of my life!
    By Kirstyamanda in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-19-2016, 01:41 PM
  2. Array formulas with dependent drop down menus
    By aas72 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2015, 08:26 AM
  3. Create dynamic dependent drop down menus
    By benji912 in forum Excel General
    Replies: 5
    Last Post: 03-11-2013, 08:19 PM
  4. Dependent Drop Down Menus
    By Illlicit in forum Excel General
    Replies: 1
    Last Post: 09-30-2011, 01:23 PM
  5. Dependent list from drop menus
    By SNL888 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-18-2011, 01:14 PM
  6. Creating dependent drop-down menus
    By ajxxx in forum Excel General
    Replies: 1
    Last Post: 11-18-2008, 12:35 AM
  7. Replies: 1
    Last Post: 03-15-2005, 08:06 PM

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