+ Reply to Thread
Results 1 to 12 of 12

Two different lists with the same name range for dependent drop-down lists

  1. #1
    Registered User
    Join Date
    02-28-2015
    Location
    ME
    MS-Off Ver
    2010
    Posts
    4

    Question Two different lists with the same name range for dependent drop-down lists

    Hello everyone,

    The excel sheet I'm working on consists of dependent drop-down lists, category, subcategory and resolution. Now let's say we choose "Inquiry" in category list and "Policy" in the subcategory, the "Inquiry > Policy" related options will appear in the following column of resolution.
    Now we have "Inquiry > Policy" path and also "Complaint > Policy" path which have different related options but we need to name both lists with different options, "Policy", so that the INDIRECT function will recognize it. How do I do that?
    Thank you.
    Last edited by MMeGa; 02-28-2015 at 12:12 PM.

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Two different lists with the same name range for dependent drop-down lists

    You require two different lists as you know because of different content. They however cannot have the same name. I suggest that the Inquiry Policy be IPolicy and the Complaint Policy be CPolicy.

    Here is a very simple example in a workbook how this could be accomplished. This takes the first letter of either Complaint or Inquiry and combines it with the word Policy which in my example is in a cell...it could instead by hard coded in the INDIRECT formula.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Two different lists with the same name range for dependent drop-down lists

    By the way, welcome to the forum.

    If the above isn't sufficient to help you, please upload the workbook that you are working on.

    Here are the instructions to follow:

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  4. #4
    Registered User
    Join Date
    02-28-2015
    Location
    ME
    MS-Off Ver
    2010
    Posts
    4

    Re: Two different lists with the same name range for dependent drop-down lists

    I thought it would be possible through something like SUBSTITUTE function.
    Anyway, thanks for your quick reply and help.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Two different lists with the same name range for dependent drop-down lists

    Excel provides many ways to accomplish the same task. Without knowing exactly what is being dealt with it is impossible to give a more definitive answer. I don't know why you want to use the SUBSTITUTE function but if there is a condition that can be recognized to trigger a SUBSTITUTION then a substitution is possible.

    Such a condition might take a form like this:

    =if(b2="Inquiry",substitute(…...

    I would have to know a lot more about what the real situation is before offering something like that as a solution.

    Your workbook would be very helpful in this regard.

  6. #6
    Registered User
    Join Date
    02-28-2015
    Location
    ME
    MS-Off Ver
    2010
    Posts
    4

    Re: Two different lists with the same name range for dependent drop-down lists

    Ok the Workbook is now attached, you can find the Policy & procedures (inquiry and complaint) columns in sheet2. I'm also thinking of a way by using VLOOKUP.

    Thank you for your help.

    ESPorblem.xlsx

  7. #7
    Registered User
    Join Date
    02-28-2015
    Location
    ME
    MS-Off Ver
    2010
    Posts
    4

    Re: Two different lists with the same name range for dependent drop-down lists

    I know I'm asking for much by now, but if you could also help me with making the drop-down lists clear selection and show blank entry after selecting different selection in previous drop-down list that would be great.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Two different lists with the same name range for dependent drop-down lists

    This example of your workbook should show you what you need to know to proceed. You don't have all the lists that you require so I only went a little way into it.

    To prevent a change to a drop down choice before other choices that have already been made, use a formula like this in the data validation list formula. This example formula applies to your A2 on Sheet1.

    In Data Validaton, Allow List, in the formula field enter:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This means that if B2 is empty, allow the name CallType if B2 is not empty try to use BlockList. BlockList doesn't exist so no Drop down list is presented. If you implement this for all the drop down lists, every cell that is dependent upon the choice that you want to change will have to be deleted before a new choice can be made.

    This has been implemented in cells A2 and B2 of Sheet1. To change A2, B2 must be empty, to change B2, C2 must be empty.

    I have also added a section that uses a VLOOKUP which you might want to consider. It takes all the terms that you have in your lists and titles and converts them all to legal names if they contain illegal characters.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    915

    Re: Two different lists with the same name range for dependent drop-down lists


  10. #10
    Registered User
    Join Date
    05-01-2018
    Location
    NYC
    MS-Off Ver
    10
    Posts
    3

    Re: Two different lists with the same name range for dependent drop-down lists

    Hi All - Apologies, I'm having the same original issue as the person who started the thread but I did not follow the answer. I have a hierarchy of 3 categories and would like to have dependent dropdowns across 3 columns, however, some of the categories have the same name. In the example I attached you can see in tab = Data that "Bridges" is both a Division and Subdivision. I know how to use the INDIRECT function but I cant figure out how to get the list "RC Name" to appear as a dropdown when Subdivsion = Bridges because I already have one created with the same name. Appreciate the help!
    Attached Files Attached Files

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Two different lists with the same name range for dependent drop-down lists

    dsand621, welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    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.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  12. #12
    Registered User
    Join Date
    04-21-2020
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    1

    Re: Two different lists with the same name range for dependent drop-down lists

    Extremely helpful, thanks a lot for such an easy solution!

+ 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. Dependent drop down lists without creating unique named lists
    By pajordan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 12:20 PM
  2. [SOLVED] Dependent drop down lists- dynamic data range- excluding Headers
    By strud in forum Excel General
    Replies: 3
    Last Post: 05-28-2013, 04:10 AM
  3. [SOLVED] Dependent drop down lists based on dynamic data range
    By strud in forum Excel General
    Replies: 15
    Last Post: 04-19-2013, 08:08 AM
  4. Dependent Drop Down Lists
    By rlmtf7 in forum Excel General
    Replies: 1
    Last Post: 08-02-2011, 02:55 AM

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