+ Reply to Thread
Results 1 to 13 of 13

Dependent drop down in excel table 2 conditions

  1. #1
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Dependent drop down in excel table 2 conditions

    Hi
    Can anyone advise how I add a drop list list based on two conditions (see attached).

    There are two companies ALPHA & BETA, Mark & Phil work for both companies representing a different roster of artists for each as below. I want to create a booking table that has the following column drop downs which AGENCY / AGENT / ARTIST BOOKED, In the artist booked drop down this must pick up which company and which agent then give a dropdown of the roster they represent for that company only - its easier to see on the attached. Any help would be greatly appreciated

    http://www.excelforum.com/attachment...1&d=1457693427


    AGENTS
    COMPANY PHIL MARK
    ALPHA THE BEATLES HAWKWIND
    ALPHA THE ROLLING STONES LED ZEP
    ALPHA THE WHO THE BEACH BOYS
    BETA BRYAN FERRY ADELE
    BETA LEO SAYER BARRY MANILOW
    BETA STEVIE WONDER DAVID BOWIE
    Attached Files Attached Files
    Last edited by faodavid; 03-11-2016 at 10:53 AM. Reason: SOLVED

  2. #2
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Dependent drop down in excel table 2 conditions

    HI,

    please see the attached file, hope it will help you.

    have created name range for MARK & PHIL you can see those on name manager using "CTRL+F3"

    after that in H3 have applied data validation with indirect function.
    Attached Files Attached Files
    If answer helped you say Thanks by Add Reputation

  3. #3
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Dependent drop down in excel table 2 conditions

    Hi

    Thanks for getting back, Ive taken a look but seems to be a problem in that if you click the drop down against each of the agent names it gives the rosters for both companies rather than just the one listed in the table ieH 11 as an example the drop down should only contain brian ferry , leo sayer and stevie wonder which are the artist Phil represents for BETA?

    Any ideas?

    Thanks
    David

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dependent drop down in excel table 2 conditions

    With the active cell as H3, go to the Name Manager (on Formula Tab) > New
    Artist = =INDEX(Sheet1!$B$3:$C$8, MATCH(Sheet1!$F3,Sheet1!$A$3:$A$8,0),MATCH(Sheet1!$G3,Sheet1!$B$2:$C$2,0)):INDEX(Sheet1!$B$3:$C$8, MATCH(Sheet1!$F3,Sheet1!$A$3:$A$8),MATCH(Sheet1!$G3,Sheet1!$B$2:$C$2,0))
    Okay, close Name Manager

    Then Select H3:H14 and select Data Validation
    List = Artist
    Okay
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  5. #5
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Dependent drop down in excel table 2 conditions

    Hi
    Sorry about this - I tried expanding the rosters and seem to have lost it in the formulas, could you possibly advise on the revised attachment

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dependent drop down in excel table 2 conditions

    Ahhh, the Agencies in Column A need to be sorted in Alphabetical order. See if that fixes things.

  7. #7
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Dependent drop down in excel table 2 conditions

    Brilliant thanks

  8. #8
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Dependent drop down in excel table 2 conditions

    Hi
    Sorry about this when I try to put the formula into the actual sheet I’m using it shows error and I’m not sure which part of the formula I have got wrong - can you help – I’ve attached the actual document. To recap I’m trying to get a drop down box in column D (Artist) on Contract DB tab, the drop down should only show the artists represented by the agent and the right agency i.e. Selective (SA) David or Gav and TSTHS Agency David or Gav. I have out the list of agencies, artists and appropriate agent in the validation tab. Can I also ask if artists are added going forward to either agency will the formula pick them up?

    Hope you can help

    Many thanks in advance

    Dave
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dependent drop down in excel table 2 conditions

    I used the defined name Artist1 (since you already have Artist)

    With active cell 'Contract DB'!D2
    =INDEX(VALIDATION!$B$3:$C$35, MATCH('CONTRACT DB'!$B2,VALIDATION!$A$3:$A$35,0),MATCH('CONTRACT DB'!$C2,VALIDATION!$B$2:$C$2,0)):INDEX(VALIDATION!$B$3:$C$35, MATCH('CONTRACT DB'!$B2,VALIDATION!$A$3:$A$35),MATCH('CONTRACT DB'!$C2,VALIDATION!$B$2:$C$2,0))
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Dependent drop down in excel table 2 conditions

    Hi
    Thanks for this, though Im not sure if its picking up all

    row 1 drop down is showing just one artist when should be showing 5
    row 2 drop down looks fine
    row 3 drop down is showing one when it should be showing 3
    row 4 drop down looks fine

    any ideas?

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Dependent drop down in excel table 2 conditions

    Where are you pulling values from? The table in Sheet Validation does not have 5 artists from Agency SA. in fact it had none until I changed the first one.

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

    Re: Dependent drop down in excel table 2 conditions

    In the last file from ChemistB there is only one artist for agency SA hence rows 1 and 3 are correct UNLESS you have added additional artists for SA.

    Or the additions to SA are not the top of the Validation list. (must be sorted by agency) I added a new SA in row 5 and the validation showed 2 entries

  13. #13
    Forum Contributor
    Join Date
    09-02-2014
    Location
    England
    MS-Off Ver
    2013
    Posts
    116

    Re: Dependent drop down in excel table 2 conditions

    Sussed it - rows A4-7 on validation agency title was Selective rather than SA. Ive changed the agency Title to SA and it all picks up correctly. Thanks for all your help it very much appreciated

+ 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. Replies: 4
    Last Post: 09-11-2014, 10:38 PM
  2. [SOLVED] I need help to combine and sum rows of data in excel dependent on 3 conditions
    By limbago in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2014, 10:08 AM
  3. Dependent Drop Down Lists with Lookup in Table Formula
    By dannysporea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2013, 12:27 PM
  4. [SOLVED] Dependent Drop down list with DEPENDENT DEFAULT VALUE
    By ginieman in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2013, 03:56 AM
  5. [SOLVED] Dependent Drop down list with DEPENDENT DEFAULT VALUE (e.g. Blank)
    By Waqar Ali in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2012, 06:31 AM
  6. dependent drop down formula in excel 07
    By malathy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2010, 10:31 AM
  7. Excel dependent drop down forms?
    By dafreedomfita in forum Excel General
    Replies: 2
    Last Post: 08-12-2007, 04:38 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