+ Reply to Thread
Results 1 to 7 of 7

Drop down list: unique value's, values based on that choice, search values based on choice

  1. #1
    Registered User
    Join Date
    08-12-2017
    Location
    Almelo,Netherlands
    MS-Off Ver
    2016
    Posts
    10

    Drop down list: unique value's, values based on that choice, search values based on choice

    Hello,

    Is there someone who could help me with a solution or a direction?

    Here an example of my dataset.
    (The table is in real much larger with more colums and types.)

    Table.PNG


    I created drop down lists with "Data Validation" + "Allow" + "List" and than i selected one of the rows in my table.


    2 problems.PNG


    3rd.PNG

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Drop down list: unique value's, values based on that choice, search values based on ch

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,519

    Re: Drop down list: unique value's, values based on that choice, search values based on ch

    Ken je hier iets mee?
    Maybe you can change this to suit your needs.
    Next time maybe attach a workbook instead of pictures.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-12-2017
    Location
    Almelo,Netherlands
    MS-Off Ver
    2016
    Posts
    10

    Re: Drop down list: unique value's, values based on that choice, search values based on ch

    My example workbook attached:
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-12-2017
    Location
    Almelo,Netherlands
    MS-Off Ver
    2016
    Posts
    10

    Re: Drop down list: unique value's, values based on that choice, search values based on ch

    Thanks Jolivanes for your file.
    At this moment I don't understand your example enough to know how to use it on my situation.
    Mayby I can figure it out later this week.

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

    Re: Drop down list: unique value's, values based on that choice, search values based on ch

    Dependent drop downs require a bit of preparation.
    The list in H2:H7 is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy (Ctrl + c) H2:H7 and paste as values > transpose (Ctrl + Alt + v) into cell J1
    J2:L11 are populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Select J2:J7, Press the Ctrl key and select K2:K4, press the Ctrl key again and select L2:L5
    While the three ranges are select press the Ctrl, Shift and F3 keys
    In the Create Names from Selection dialog box be sure that Top row is checked and select OK
    The data validation for cell F2 is: =OFFSET(H1,1,0,SUMPRODUCT(--(H2:H7<>"")),1)
    The data validation for cell F3 is: =INDIRECT(F2)
    The formula for F6 is: =INDEX(Tabel1[Type],AGGREGATE(14,6,(ROW(Tabel1[Serie])-ROW(Tabel1[#Headers]))/(Tabel1[Serie]=F2)/(Tabel1[Weight]<=F5),1))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Drop down list: unique value's, values based on that choice, search values based on ch

    Maybe you could also use in the data validation for F3...

    Create a name >> My_Type =OFFSET(Tabel1[[#Headers],[Serie]],MATCH(QUESTION!$F$2,QUESTION!$A:$A,0)-1,1,COUNTIF(QUESTION!$A:$A,QUESTION!$F$2))

    Then in the data validation on F3 use My_Type as the list source. Now you don't need the stuff in column J:L. Just a thought.
    HTH
    Regards, Jeff

+ 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. Multiple Time Stamps depending on choice in Drop Down List Choice
    By insayah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2022, 09:53 AM
  2. [SOLVED] Display result based on Drop Down box list choice
    By SHANBURR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2015, 03:25 PM
  3. Charting Data Based On Drop Down List Choice
    By many in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-07-2014, 09:08 AM
  4. [SOLVED] Autofill Based on Choice From Drop Down List?
    By jbakajust1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-01-2012, 11:57 AM
  5. [SOLVED] How Can I return an adjacent value based on the choice of my drop down list?
    By William_IV in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2012, 03:25 PM
  6. Excel 2007 : Insert list based on drop down choice
    By Ron1121 in forum Excel General
    Replies: 1
    Last Post: 01-11-2010, 07:58 PM
  7. Replies: 1
    Last Post: 05-24-2007, 12:37 PM

Tags for this Thread

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