+ Reply to Thread
Results 1 to 11 of 11

Create Drop Down List Based on Manually Entered Criteria

  1. #1
    Registered User
    Join Date
    01-26-2017
    Location
    Baton Rouge, LA, USA
    MS-Off Ver
    2010
    Posts
    6

    Create Drop Down List Based on Manually Entered Criteria

    Hello,

    I am new here and have been pouring through the forum trying to find the answer to my problem. I have found many threads that are close to a solution, but not exactly what I need. In fact, I have learned much from the many threads I've read. Perhaps I have overlooked it. If so, please direct me to the appropriate thread.

    I am trying to have a manually entered RATING that is used to reference a data table and return a drop down list that only shows ITEMS that correspond with the manually entered RATING. All the details are in the attached example. Any guidance is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,243

    Re: Create Drop Down List Based on Manually Entered Criteria

    In N2 of your data table sheet:

    Excel 2016 (Windows) 32 bit
    N
    2
    =IFERROR(INDEX(Table1[[#All],[DETAILS]],SMALL(IF(Table1[RATING]=DROPDOWN!$B$1,ROW(Table1[DETAILS])),ROWS($N$1:N1))),"")
    Sheet: DATA

    ... 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 your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Drag this down to N5000.

    Create a named range called List based on N2:N5000.

    Select A4 on the dropdown sheet and create a data validation that uses =List as its source.

    You can hide the helper column N if you want to.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,221

    Re: Create Drop Down List Based on Manually Entered Criteria

    In "DATA" sheet : where is "CASE QTY"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,243

    Re: Create Drop Down List Based on Manually Entered Criteria

    AVK - it's not needed. That will be calculated on the dropdown sheet from the base price on the data sheet. I am assuming that the OP only needs help with the dropdown, not the calculations.

  5. #5
    Registered User
    Join Date
    01-26-2017
    Location
    Baton Rouge, LA, USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Create Drop Down List Based on Manually Entered Criteria

    ALIGW, thank you so much! That is almost exactly what I needed!

    The only problem is that column "N" on the DATA sheet shows "Apple" (whose RATING is 1) no matter what value is in $B$2; and it doesn't show the first DETAILS value for the corresponding RATING (unless the RATING is 1).

    When I first made the NAMED RANGE, List, it was giving me a lot of blank cells in the drop down list. The solution to that problem was to use the following as the source for the List named range:

    =DATA!$N$2:INDEX(DATA!$N$2:$N$5000,SUMPRODUCT(--(DATA!$N$2:$N$5000<>"")))

    Again, thank you so much! I've attached an updated version of the file with additional notes for anyone who would like to see the solution in action. It also has the vlookups for the other columns showing how the drop down selection fills the rest of the table.

    ONE MORE QUESTION: What if I wanted the drop down to include values for all DETAILS whose RATING is less than or equal to the RATING in $B$2? How would that change the formula in the "N" column on the DATA sheet? For example, if the RATING was 2, it would populate column "N" with all of the DETAILS that have a RATING of 1 or 2 instead of just those with RATING 2.
    Attached Files Attached Files
    Last edited by rcsibley; 01-27-2017 at 08:15 AM.

  6. #6
    Registered User
    Join Date
    01-26-2017
    Location
    Baton Rouge, LA, USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Create Drop Down List Based on Manually Entered Criteria

    Hello AVK,

    CASE QTY is manually entered by the user on the DROPDOWN sheet. See the reposted example in my reply to AliGW.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,243

    Re: Create Drop Down List Based on Manually Entered Criteria

    It works perfectly for me on your workbook. I can't look now, but will try to later this afternoon, unless someone else chimes in.

  8. #8
    Registered User
    Join Date
    01-26-2017
    Location
    Baton Rouge, LA, USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Create Drop Down List Based on Manually Entered Criteria

    Okay. i closed the workbook and reopened it, and it worked exactly right! Not sure what the problem was with the "N" column. Thank you again. Now my only question is how to make the drop down show the less than or equal to results. I played with it a little, but could not figure it out. I can get it to show the correct result in N2, but not in N3-N5000 - they all show blanks.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,521

    Re: Create Drop Down List Based on Manually Entered Criteria

    Did you reactivate by pressing Ctrl, Shift and Enter after making the change to the formula in N2? I changed the formula in N2 to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I then simultaneously pressed Ctrl, Shift and Enter and copied down to N500 and it worked as expected. Perhaps copying to N5000 is causing the issue.
    Let us know if you have any questions.
    Last edited by JeteMc; 01-27-2017 at 01:32 PM.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Registered User
    Join Date
    01-26-2017
    Location
    Baton Rouge, LA, USA
    MS-Off Ver
    2010
    Posts
    6

    Re: Create Drop Down List Based on Manually Entered Criteria

    Awesome! I'm not sure what the problem was, but it is now working correctly with the <=. Thank you JeteMc!

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,521

    Re: Create Drop Down List Based on Manually Entered Criteria

    You're Welcome. Thank you for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. [SOLVED] Create drop down lists based on data entered in two previous cell???
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-01-2015, 10:26 AM
  2. Replies: 1
    Last Post: 06-22-2014, 02:39 AM
  3. Create drop down list based on various user entered data.
    By dlr00 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-03-2012, 07:37 PM
  4. create a dynamic drop down list based on specific criteria
    By stevegrobertson in forum Excel General
    Replies: 4
    Last Post: 02-21-2012, 08:07 PM
  5. Replies: 14
    Last Post: 04-19-2011, 02:22 PM
  6. Replies: 14
    Last Post: 03-10-2011, 12:01 AM
  7. [SOLVED] how do I make drop-down list select based on 1st letter entered?
    By Missykender in forum Excel General
    Replies: 3
    Last Post: 10-06-2005, 07:05 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