+ Reply to Thread
Results 1 to 15 of 15

Create drop down list with range of values that is exact match from a table

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Create drop down list with range of values that is exact match from a table

    Relatively novice with Excel.

    Am trying to create a drop down list that does that following;

    Returns a range of values (in this case all sizes) into cell F7 on sheet named Home! that matches the entry in cell C7 (item catalogue description) from an array on sheet Male NSN Catalogue! A:B (Column A the description and Column B holds all sizes).

    To make it a bit clearer, the table on Male NSN catalogue contains an item called 'Light Blue Short Sleeve' throughout cells A2:A20 returning the respective sizes 31-49 throughout column B2:B20.

    So when a customer selects 'Light Blue Short Sleeve' in cell C7 on the Home page the customer should then be able to select a size from the drop down list in cell F7.

    I have done it this way because each size will have its own catalogue number (which I am competent enough to retrieve through simple use of VLOOKUP).

    Many thanks in advance

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Create drop down list with range of values that is exact match from a table

    Hi there... and welcome to the Excel Forum.

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    Online Demand System.xlsx

    That should be attached now.

    As you will see I have attempted the data valiadation for drop down list in cell C7 (named 'Size') with incorrect formula use of INDEX and MATCH.

    Thanks again.

  4. #4
    Registered User
    Join Date
    08-12-2015
    Location
    Mumbai India
    MS-Off Ver
    2010
    Posts
    5

    Re: Create drop down list with range of values that is exact match from a table

    Hello Glenn;
    If I understand right you need the sizes appearing on Sheet "Male NSN Catalogue" Column B Cell B2 thru B21 to appear in you Drop Down List on Worksheet "Home" Cell F7.

    If that's right all you have to do is in the Data Validation Window you have to select the Data Range as done in attached file.

    Hope I have been of help to you.

    Thanks & Regards

    Mahesh Woolvara
    Mumbai - IndiaOnline Demand System-WKM1.xlsx

  5. #5
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    Mahesh Woolvara,

    Not quite. The drop down list in cell F7 is depandant on the item chosen in cell C7, which at the moment in this case is 'Light Blue Short Sleeve'

    Think of the home page as an order form, where customers choose the item of clothing from the drop down list in cell C7 and then have to choose from the available sizes in the drop down list in cell C7.

    The issue is that these sizes pertain to the item and are held on the Male NSN Catalogue worksheet (where I will be adding a lot more items, as well as a Female NSN catalogue worksheet). So therefore, I need the drop down list to be dynamic, the document attached contained my attempts at this using INDEX and MATCH formulai, but to no avail.

    Have I explained it clearly enough?

    Once again, thank for yours and anyone elses assistance.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Create drop down list with range of values that is exact match from a table

    I had to put the named ranges onto Sheet1 'cos of the protection that you'd applied elsewhere. You're clearly well familiar with Named Ranges, etc. Each column on sheet 1 is home to two named ranges. Each column is named after the item selection (minus any spaces) followed by Col. So the NR for the column of sizes available for Light Blue Short Sleeve (column A) becomes LightBlueShortSleeveCol. A1 is named LightBlueShortSleeve. Column B and B1, similarly - except using the sizes appropriate for the next description in Item selection.

    The DV formula in Home F7 was set to
    =OFFSET(INDIRECT(SUBSTITUTE($C7," ","")),0,0,COUNTA(INDIRECT(SUBSTITUTE($C7," ","")&"Col")),1)

    and bingo.... it all works.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    I've tried what you have linked and it only works for if the item is 'light blue short sleeve'. Can't see where the forumla makes the reference to sheet1 that you created either.

    I need in effect a VLOOKUP that picks up all sizes in each row for where the description matches in the sheet Home! in the worksheet named Male NSN Catalogue. I am also going to have to amend the formula you are able to find for me to contain an IF function; If cell D4 is male or female (because I will also be adding a Female NSN Catalogue worksheet from which to pull female sizes).

    Sorry to be a pain.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Create drop down list with range of values that is exact match from a table

    Hi. Firstly, do you acept that it was working on the sheet that I had attached yesterday for a range of Item selections?

    Secondly, check out the Named Ranges (CTRL F3) - since your sheet was already full of other named ranges, i assumed that you were familiar with these. The ones that I created (2 each for columns A-E of sheet 1, a total of 10) can be seen there.

  9. #9
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    Thank you for your response.

    I checked what you did and it did what you said it did. Problem is, i'm only a little familiar with the data validation, defining names and the data manager, and I'm sorry but I am not competent enough to understand the formula you used. I saw the DVs you did for each item and where the formula referenced (they went into sheet1 and worked their way across the columns).

    What I really need is a multiple VLOOKUP against the clothing description i.e. Light Blue Short Sleeve (if selected in cell C7) into the description on the Male NSN Catalogue worksheet (column A:A) and return all possible sizes (column B:B).

    Think of the Home sheet as an order form for customers, they will not have access to or see any other worksheet.

    I have uploaded the latest version of my document and as you will see I have added more items into the Male NSN Catalogue Worksheet and I still, potentially, have to add hundreds more, so, creating DV for each and every item I add to the catalogue is going to be a pain, add to that, some items may be removed in the future.

    To complicate matters, I will have to do the same for female sizes. The choice in cell D4 will determine where to look for the sizes using an IF function followed by the formula that I am seeking your help for (one step at a time though).

    As ever, thank you for assistance, and no doubt persistence and patience, it is appreciated. I will be in your debt.

    Online Demand System (1).xlsx

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Create drop down list with range of values that is exact match from a table

    OK. let's try this, then. I used a combination of INDIRECT (to tell Excel which catalogue - male or female - to go to) and an INDEX-SMALL array formula to return multiple results.

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

    There is also a non-array alternative, but let's see if this is closer to what you wanted, first. I'm not going for that option in the first place, simply because the formula looks a lot more complicated!! Let's get the basics agreed first...
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    Wow that's looking more like it!! Looks great!

    Now if we can squeeze the sizes into a drop down list it would be perfect! I tried copying and pasting your formula into a DV value but it doesn't like it. Says it needs to be delimited to a single row or reference.

    The reason for the need of a drop down menu is that, row 7 is the means to select information for customers to order a single item. I wish to allow, say 9 more rows immediately underneath, in which the customer can order more items i.e. row 7 for a light blue short sleeve shirt, and then, row 8 for if they want to order say trousers as well etc.

    Functionality wise it does exactly what I need it to and thank you for going that extra step further with the *** and catalogue number conditionals. I have studied your formula so as to learn of its use and application. That formula opens up more possibilities for me should I need to redirect other information from the item catalogue in the future.

    Once again many thanks!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Create drop down list with range of values that is exact match from a table

    I had a feeling that that was what you were going to want!! So, go back to post 6. That will deliver what you want. Those are your two choices. A more complicated system of named references (Post 6) or an dynamic list (Post 10). I do not know of ANY way to achieve what you are asking for. It may be do-able with VBA, but I wouldn't guarantee it...

  13. #13
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    What you have provided is perfect and I can work around it by hiding the column F:F with the formula you have provided and then doing an adjacent column G:G with a DV list referring to F:F from which the values can be selected. Perfect.

    Many thanks for taking the time to write the formula and for educating me in its use! This can now be considered solved.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Create drop down list with range of values that is exact match from a table

    Dohh!! That never occurred to me!!!

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  15. #15
    Registered User
    Join Date
    08-19-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Create drop down list with range of values that is exact match from a table

    Added to reputation and marked as solved. Many thanks again.

+ 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: 3
    Last Post: 05-19-2014, 02:01 PM
  2. Autofiler Based on a List of Values in a Range (Include not Exact Match)
    By dan.zrust in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2014, 01:09 PM
  3. [SOLVED] How to create groups in pivot table drop down list
    By garciae2 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-08-2013, 10:42 AM
  4. create a pivot table from updating list of exact match
    By XLrookie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2013, 03:46 PM
  5. Create List using values in Filter drop down
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2007, 02:14 PM
  6. create a drop down list without using a table
    By punter in forum Excel General
    Replies: 5
    Last Post: 09-26-2007, 04:27 PM
  7. Replies: 0
    Last Post: 08-25-2005, 02:37 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