+ Reply to Thread
Results 1 to 7 of 7

Arrggh!! Dependent drop down lists...

  1. #1
    Registered User
    Join Date
    12-22-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    9

    Arrggh!! Dependent drop down lists...

    Hi guys - I'm trying to produce a spreadsheet with drop downs, but each of these drop downs will have an effect on what the next drop down along will contain in it's drop down.

    So, if user selects Hospital A, this will then prompt the next drop down along (wards) to only show in it's list those wards associated with Hospital A i.e. Ward AB, AC, AD, AE. If user selects Hospital B, the ward dropdown next to it will only populate it's list with Ward BA, BB, BC, BD etc....

    Can anyone help??

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Arrggh!! Dependent drop down lists...

    Dependent data validation is explained in detail on Contextures: http://www.contextures.com/xlDataVal02.html

    There are different approaches, depending on your data structure. The best advice can only be given if you share your data structure by uploading a file.
    Like a post? Click the star below it!

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Arrggh!! Dependent drop down lists...

    Hi

    Take a look here.. Depanted validation Lists..

    http://www.contextures.com/xlDataVal02.html
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Arrggh!! Dependent drop down lists...

    @ npamcpp

    You were faster! Did you see my example, yesterday?

  5. #5
    Registered User
    Join Date
    12-22-2010
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Arrggh!! Dependent drop down lists...

    Thanks guys - perhaps if I give you the variables and the reulting lists I need? As follows:

    Hospital List:
    Fordingbridge
    Hythe
    Romsey
    Gosport
    Havant
    Alton
    Chase
    Fleet
    Odiham
    Petersfield
    Lymington
    Abbey House
    Brendon Care

    I want the first item which appears on this first drop down list to say - 'Select Hospital'

    Once a hospital is selected I then want the ward drop down to automatically populate with the relevant wards associated with the hospital selected, as follows:

    Fordingbridge = Ford Ward
    Hythe = Hythe Ward
    Romsey = Romsey Ward
    Gosport = Sultan Ward
    Havant = Havant Ward
    Alton = Anstey Ward, Inwood Ward
    Chase = Macilwain Ward
    Fleet = Calthorpe Ward
    Odiham = Odiham Ward
    Petersfield = Rowan Ward
    Lymington = Deerleap Ward, Longbeech Ward, Wilverley 2 Ward, MAU Ward, Knightwood Ward
    Abbey House = Single Rooms Ward
    Brendon Care = Dame Sheila Quinn Ward

    So, once a user selects, say, Lymington Hospital, the ward drop down immeidately changes to show all the Lymington Wards in the list i.e. Deerleap Ward, Longbeech Ward, Wilverley 2 Ward, MAU Ward, Knightwood Ward. If user selects Alton Hospital, the ward drop down immediately shows Anstey Ward and Indood Ward as the two wards associated with this hospital...and so and and so forth....

    If anyone can help, would be much appreciated.

  6. #6
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Arrggh!! Dependent drop down lists...

    The setup required for this is described in detail in the link that has been posted twice by two different members. Have you tried it? If you get stuck, post a file and show how far you got and where you got stuck.

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Arrggh!! Dependent drop down lists...

    Dependent Lists can be tricky, especially when trying to use Dynamic Named Ranges.

    In addition to the already mentioned sources of information try this workbook.

    Add to the list in Columns C:D, the rest will update automatically.

    The hospitals in Column C must be grouped, it isn't essential that the groups are sorted alphabetically, but that would be the easiest way to go.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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