+ Reply to Thread
Results 1 to 18 of 18

Drop down list depending on previous values

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Drop down list depending on previous values

    hi
    i really cant figure out how to do this!!
    please see attached document - this is a stock record sheet.
    what i want it to do is when Bed is seleceted in column B - i want colum C to show the BedSize list which is in the lists tab. and the same with Chair i want it show ChairSize

    PLEASE can anyone help!!
    Attached Files Attached Files

  2. #2
    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: Drop down list depending on previous values

    You need depanted list for this.

    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.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Drop down list depending on previous values

    hi OAKLEY. name your ChairSize range too. then do a Data Validation List formula as such:
    =IF($B2="Bed",BedSize,ChairSize)
    Attached Files Attached Files
    Last edited by benishiryo; 01-03-2013 at 11:16 AM. Reason: added file

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Drop down list depending on previous values

    Is the bed size list the range B2:B8 on the Lists sheet?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    yes thats right. and the chair size list is C2:C6
    MT

  6. #6
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    yes thats right. and the chair size list is C2:C6
    MT

  7. #7
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    it only brings up the ChairSize list??!
    sorry - this is in reply to Benishiryo....!

  8. #8
    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: Drop down list depending on previous values

    What i suggested is this.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    thats great -
    but sorry could i be a pain and ask how you entered it???

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Drop down list depending on previous values

    As the source for the drop down in column C use:

    =INDIRECT(B2&C$1)

    You don't have a named range that refers to the chair size yet so you'll have to create that named range.

  11. #11
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    so you just put that?
    it comes up 'The Source currently evaluates to an error. Do you want to continue?'

    and if i make B2=Bed - it just comes up with the ChairSize list??? sorry if i am being real dumb!!

  12. #12
    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: Drop down list depending on previous values

    Quote Originally Posted by OAKLEY View Post
    thats great -
    but sorry could i be a pain and ask how you entered it???
    See in your List Sheet, headers in columns B & c.
    Then see at the Named ranges. There are 2 more. Bed & Chair.
    Then in Data validation rules in Column C, starting in C2, use this rule: = INDIRECT(B2)

    Check this and let me know.

  13. #13
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    im sorry - i dont get you!
    which sheet do you put the Data Validation Rule in????

  14. #14
    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: Drop down list depending on previous values

    Apologize for my poor English.

    I try to explain in the example that i upload.

    But, pls someone that speak English, can explain to our friend what i have done?
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Drop down list depending on previous values

    NOO your english is good!! SOOOO much better than my greek!!
    i see what you mean now!! i have done it!!
    MANY THANKS!!!

  16. #16
    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: Drop down list depending on previous values

    You are welcome!

    I am glad that at the end IS NOT "All Greeks for you"!

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Drop down list depending on previous values

    Typically, what you would do is name the range source for the drop down list the same as the item being selected from the parent drop down list.

    For example, if the parent list selections are Bed and Chain then you create the named ranges Bed and Chair.

    Bed would refer to: =Lists!$B$2:$B$8

    Chair would refer to: =Lists!$C$2:$C$6

    Then, as the source for the drop down list in column C you would use:

    Data Validation
    Allow: List
    Source: =INDIRECT(B2)

  18. #18
    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: Drop down list depending on previous values

    ............

+ 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