+ Reply to Thread
Results 1 to 12 of 12

Dependent Drop-down List Shifted To The Right

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Question Dependent Drop-down List Shifted To The Right

    I'm having a problem with dependent drop down lists. On the internet there are a bunch of examples, but each example has the data column right next to the dependent list. In my use of dependent drop-down lists my independent list is in column D and my dependent list is in column F. Can someone show me how to create the dependent list which isn't adjacent to the independent list?

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

    Re: Dependent Drop-down List Shifted To The Right

    The column is irrelevant, the formula used to activate the Dependent list is usually looking to left to SOME column and noting that cell in the formula. What Dependent Validation for an adjacent cell have you tried and gotten working? You should be able to take that EXACT same formula and move it over one column, no changes at all as you enter it, and it should work exactly the same as when you had the columns adjacent.

    Show us what you've tried so far if you still can't get it, but if you have found and seen how adjacent columns work, there's fundamentally no difference, put the same formula you would have to look ONE cell to the left over as many columns as you wish, just make sure the formula you enter is referring to the dependent column.
    _________________
    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!)

  3. #3
    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
    53,051

    Re: Dependent Drop-down List Shifted To The Right

    Dependent drop-downs are based on named ranges, using =range-name. As such, the location of that range should nor affect how the DD works?

    Maybe you should upload a sample workbook for us to take a look at? (No sensitive info)
    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

  4. #4
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Re: Dependent Drop-down List Shifted To The Right

    OK, I kind of got it working. It has two flaws that I can't seem to fix. The first being it only see one value in the dependent side of the list. Second, I want to be able to change the contents of a cell in the dependent cell. For example I want the user to take V,currLIM,PS1_MUX,tol,ON,OV
    which they can select and then write 5,01,PS1_MUX,.1,ON,7. With these two fixes I have a workable spreadsheet. See attached.
    Attached Files Attached Files

  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: Dependent Drop-down List Shifted To The Right

    You really only need 3 named ranges to get this to work.

    1) Click on F2 before you edit these formulas

    2) Range formulas:

    CODE: =Lists!$A$2:INDEX(Lists!$A:$A, COUNTA(Lists!$A:$A))

    AnchorCell: =Lists!$A$1

    MyList: =OFFSET(AnchorCell, 1, MATCH(Setup!$D2, Lists!$1:$1, 0)-1, COUNTA(OFFSET(AnchorCell, 1, MATCH(Setup!$D2, Lists!$1:$1, 0)-1, 100, )), )
    Last edited by JBeaucaire; 07-02-2013 at 09:58 AM.

  6. #6
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Re: Dependent Drop-down List Shifted To The Right

    Fantastic, its almost there. I can select each of the two cells in their respective columns. I want to be able to change the contents of the contents in column D. Almost there

  7. #7
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Re: Dependent Drop-down List Shifted To The Right

    Oops, I meant to say change the contents in Column F. Sorry.

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

    Re: Dependent Drop-down List Shifted To The Right

    What is stopping you? Clicking on any cell in column F should allow you to edit them. The only constraint is you have to select from the options provided.

  9. #9
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Red face Re: Dependent Drop-down List Shifted To The Right

    Perfect. This is solved. Great job and now I can use to assist a whole bunch of engineers. Thank you very much.

  10. #10
    Forum Contributor
    Join Date
    12-22-2004
    Location
    Kokomo, Indiana
    Posts
    236

    Re: Dependent Drop-down List Shifted To The Right

    [SOLVED] Notch one for JBeaucaire.

  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: Dependent Drop-down List Shifted To The Right

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  12. #12
    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
    53,051

    Re: Dependent Drop-down List Shifted To The Right

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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