+ Reply to Thread
Results 1 to 6 of 6

Only display list in a cell based on selection in a different list, otherwise default

  1. #1
    Registered User
    Join Date
    01-16-2018
    Location
    Oklahoma
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    3

    Only display list in a cell based on selection in a different list, otherwise default

    I have a complex order form I've created in Excel. There are 13 Worksheets, 12 for each month and one that contains the full item list.

    Several of the items available to order can be ordered in singles or in a box, but the majority of the items can only be ordered in a box. How can I make the unit type default to 'Box' if only a box can be ordered and create a drop down list when the item can ordered in singles and in a box?

    In each order form, I have several vlookup formulas that refer to the item list and are dependent on the unit type.

    I appreciate your help!

    Thanks,
    Jenna
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Only display list in a cell based on selection in a different list, otherwise default

    Start by removing all the data validation drop down lists in column D of all the Order Sheets. I am assuming that the drop down lists in column B of the Order Sheets contain the names of all the products exactly as written in column A of the Item List sheet. Then do the following: Hold down the ALT key and press the F11 key. This will open the Visual Basic Editor. In the left hand pane, double click "ThisWorkbook". An empty code window will open up. Copy/paste the macro below into this empty window and then close the window to return to your sheets. In any of the Order sheets, select a product in Column B.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 01-17-2018 at 10:57 AM.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    01-16-2018
    Location
    Oklahoma
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    3

    Re: Only display list in a cell based on selection in a different list, otherwise default

    Thank you! The code worked perfectly for the items that can be ordered in singles and in a box, but column D is blank when only the box is available to order. Is there a way to make column D default to 'Box' if the only option is 'Package' on the Item List?

    Order Form Image.PNG

    Thanks!

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Only display list in a cell based on selection in a different list, otherwise default

    I'm not sure what you mean when you say:
    column D is blank when only the box is available to order
    I thought you wanted the word "Box" as the default in column D when an item is available only in a box according to
    How can I make the unit type default to 'Box' if only a box can be ordered
    I didn't see the option 'Package' on the Item List. Please clarify in detail using a few examples from your data and referring to specific cells and worksheets. Attach an updated file if necessary.

  5. #5
    Registered User
    Join Date
    01-16-2018
    Location
    Oklahoma
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    3

    Re: Only display list in a cell based on selection in a different list, otherwise default

    I just found the issue. I updated the sample workbook to show 'Box' or 'Both', but I didn't update my master to 'Box' instead of 'Package'. The code is perfect. Thank you so much!!!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,815

    Re: Only display list in a cell based on selection in a different list, otherwise default

    You are very welcome.

+ 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. Trying to have a drop down menu display a list based on selection
    By BrandonBickett in forum Access Tables & Databases
    Replies: 1
    Last Post: 06-11-2015, 01:18 PM
  2. Display Column in Sheet Based on Drop-Down List Selection
    By huntethic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2015, 01:11 PM
  3. [SOLVED] How to make a dropdown list cell default to blank, after another cell selection is made
    By chardsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2013, 03:46 AM
  4. Replies: 1
    Last Post: 08-15-2012, 12:13 PM
  5. Multiple results to display based on selection made from drop down list
    By scoot_eruk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2012, 05:03 AM
  6. Replies: 1
    Last Post: 02-17-2012, 05:19 PM
  7. List box - setting default selection
    By Brian in forum Excel General
    Replies: 2
    Last Post: 01-26-2005, 05:06 PM

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