+ Reply to Thread
Results 1 to 6 of 6

Dependent Drop Down List

Hybrid View

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Arlington, VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Dependent Drop Down List

    In the attached worksheet, on the "Data Entry" tab, when the user selects the Project (Column A), I need a drop down list to appear that only selects the subcontractors that are relative to that project in Column D (based on the "Subcontracts" tab Column B.)

    Then I need for the Subcontractor name from the "Subcontracts" tab to populate column E automatically on the "Data Entry" tab.

    For example, if project 660000227 is chosen, column D should have a list of 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15. If I choose number 1 - then R.D. Lambert would be popuulated in Column E.


    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Dependent Drop Down List

    P_Bennett,

    Attached is a modified version of your posted workbook. It contains the following changes:
    1. Sorted the Projects table by project.
    2. Created a named range "ProjectList" using formula:
      =Table_Query_from_COMPASS_APP[project]
    3. Sorted the Subcontracts table by project and then by subcontract.
    4. Created a named range 'SubContractList' using formula:
      =Table_Query_from_COMPASS_APP3[project]
    5. Used the ProjectList named range as the data validation list for sheet 'Data Entry' cells A6:A13
    6. Created a data validation list in sheet 'Data Entry' cells D6:D13 by using this formula:
      =IF($A6="","",OFFSET(SubContractList,MATCH($A6,SubContractList,0)-1,1,COUNTIF(SubContractList,$A6)))
    7. Retrieved the Subcontract Name in sheet 'Data Entry' cells E6:E13 by using this formula:
      =IF(OR(A6="",D6=""),"",INDEX(Table_Query_from_COMPASS_APP3[Name],MATCH(1,INDEX((Table_Query_from_COMPASS_APP3[project]=A6)*(Table_Query_from_COMPASS_APP3[subcontract]=D6),),0)))
    Last edited by tigeravatar; 06-06-2012 at 03:17 PM. Reason: Had to reupload attachment
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Dependent Drop Down List

    Not able to open the attachment.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Dependent Drop Down List

    rakesh, the Attachment is a .xlsx file and therefore requires Excel 2007 or higher, or the MS Office Compatibility Pack. You have Excel 2003 listed as your version of MS Office, which is why you cannot open the attachment.

  5. #5
    Registered User
    Join Date
    01-19-2012
    Location
    Arlington, VA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Dependent Drop Down List

    tigeravatar - Thank you so much, it would have taken me a month to figure that out.

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Dependent Drop Down List

    You're very welcome

+ 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