+ Reply to Thread
Results 1 to 12 of 12

Show a dropdown when another field is populated

Hybrid View

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Show a dropdown when another field is populated

    Hello,

    I would really appreciate some excel help on this problem I'm having. I have 2 related columns with one to many relationship, on a tab populated with some data. On another tab I'm referencing these 2 columns. When I populate one column I would like a drop down showing all the related data from the 2nd column of the first tab in the 2nd tab. I'm unable to do a named range as my first column has spaces in its name.
    I'm attaching an example of what I'm trying to achieve. Any help would be greatly appreciated.

    Thanks,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    Could any one help me with this? Please let me know if you need me to clarify my question. Thanks.

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Show a dropdown when another field is populated

    Hello
    Create the following named ranges:

    AC_HV_Swgr = 'Class-Attr realtionship'!$B$14:$B$15

    DC_Traction_Swgr = 'Class-Attr realtionship'!$B$12:$B$13

    SS = 'Class-Attr realtionship'!$B$2:$B$6

    Xfmr = 'Class-Attr realtionship'!$B$7:$B$11

    Then apply the Data Validation list in 'Asset Attribute'!C2:C4, using the formula:

    =INDIRECT(SUBSTITUTE($B2," ","_"))
    Hope this helps.
    DBY

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

    Re: Show a dropdown when another field is populated

    One more, see attachment.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    Could you explain how you created the myRange? Thanks.

    Would really appreciate any help on this.
    Thanks.
    Last edited by Lata; 01-29-2013 at 09:48 AM.

  6. #6
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    Thank you for your response. Let me try this. I'll let you know how it goes.

  7. #7
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    It works!!!! Great. Thanks so much

  8. #8
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    Example.xls
    I have a follow up question as I stumbled on another issue. You gave me the formula to replace the spaces with an underscore. But I have data in "Asset classifications Abbreviation" columns also staring with a number sometime and some may have parenthesis in them. So the formula to just remove spaces may not work. Can I elaborate the formula to add other types of conditions?

    Thanks for help. I'm attaching the spreadsheet with additional data to show you these exceptions I'm encountering(added new rows to the tab Class-Attr relationship)

  9. #9
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    WHER- How did you create 'myRange'? I'm stuck at this point. Could anyone help?

  10. #10
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Show a dropdown when another field is populated

    Could ANYONE respond to this query?

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

    Re: Show a dropdown when another field is populated

    "myrange" is a Named Range, see ctrl+F3 for a list of Names.
    In the "Refers To" box you see the formula (based on 'Offset') that defines the range.
    =OFFSET('Class-Attr realtionship'!$B$1;MATCH('Asset Attribute'!$B2;'Class-Attr realtionship'!$A$2:$A$15;0);0;COUNTIF('Class-Attr realtionship'!$A$2:$A$15;'Asset Attribute'!$B2);1)
    You will probably see the ";" in the formula as ","

  12. #12
    Registered User
    Join Date
    01-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    23

    Thumbs up Re: Show a dropdown when another field is populated

    Thank You so much. I would have never figured it out. Appreciate your response and help.

+ 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