+ Reply to Thread
Results 1 to 11 of 11

display all row containing string from Both Dropdown list

  1. #1
    Registered User
    Join Date
    06-03-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    display all row containing string from Both Dropdown list

    hi,
    i have a list of data which contains Region ("West", "North") in first column, Circle ("Mumbai","Maharashtra","Delhi","Haryana") as second Column, and Friuts name in third column.
    1. with the help of Data validation i have made a Dropdown 1 which contains "west" & North"
    2. Second DropDown is ccreated which is dependent on first one. when the Value of first DropDown is "West" it will have list as "mumbai,"Maharshtra" and for "North" it will have list as "Delhi"&"Haryana"
    3. after selecting both drop down below is the table which will show Rows having values which is combined by both Dropdown Value

    for e.g. if the 1st Dropdown value is "West", and "Mumbai" is selected in second drop down, then table will contain as below


    Please Login or Register  to view this content.
    i have tried using vlookup but it display only one value.

    pl help.
    Last edited by pintusolanki1; 06-03-2017 at 04:26 PM.

  2. #2
    Registered User
    Join Date
    06-03-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: display all row containing string from Both Dropdown list

    i have attached my sample file
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: display all row containing string from Both Dropdown list

    Attach a sample workbook (not image).

    OP has done so.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: display all row containing string from Both Dropdown list

    in H14

    =IFERROR(INDEX($C$2:$C$19,SMALL(IF(($F$8=$A$2:$A$19)*($G$8=$B$2:$B$19),ROW($A$2:$A$19)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    ...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.

    Copy down

  5. #5
    Registered User
    Join Date
    06-03-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: display all row containing string from Both Dropdown list

    Thanks John, it is displaying the contents of C column as required. but how i can show Column in F14 and H14 as shown in table above.
    with the same formula in F14 and G14. it is showing as

    Please Login or Register  to view this content.
    but i reqd as
    Please Login or Register  to view this content.
    Last edited by pintusolanki1; 06-03-2017 at 04:09 PM.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: display all row containing string from Both Dropdown list

    Put this in F14

    =IFERROR(INDEX(A$2:A$19,SMALL(IF(($F$8=$A$2:$A$19)*($G$8=$B$2:$B$19),ROW($A$2:$A$19)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    ...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.

    Copy across and down

  7. #7
    Registered User
    Join Date
    06-03-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: display all row containing string from Both Dropdown list

    Thanks John, i had figured it out, it was my silly typing mistake. thanks you so much for the Formula

  8. #8
    Registered User
    Join Date
    06-03-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: display all row containing string from Both Dropdown list

    i need little more help
    i need to display all data related to first drop down selected.

    i have attached my sample file. pl Help
    for e.g.

    Dropdown1: West and DropDown2: "All" (or a Blank is displayed)

    Please Login or Register  to view this content.
    i
    and

    Dropdown1: West and DropDown2: Mumbai

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: display all row containing string from Both Dropdown list

    In F14

    =IFERROR(INDEX(A$2:A$19,SMALL(IF(($F$8=$A$2:$A$19)*IF($G$8="ALL",1,($G$8=$B$2:$B$19)),ROW($A$2:$A$19)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    ...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.

    Copy across and down

  10. #10
    Registered User
    Join Date
    06-03-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    9

    Re: display all row containing string from Both Dropdown list

    Thanks once again for saving my lots of work, with you help and support

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: display all row containing string from Both Dropdown list

    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. [SOLVED] display unique list in dropdown in each subsequent cell
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-04-2017, 10:12 AM
  2. Replies: 3
    Last Post: 12-15-2015, 12:14 PM
  3. [SOLVED] Display automatically particular list in dropdown
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-07-2014, 09:11 AM
  4. Display dropdown list after previous selection
    By norm188 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2013, 10:32 PM
  5. Display dropdown list in cell if condition is met
    By markiz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2013, 03:12 AM
  6. Dropdown List - Change Display
    By ewainscott in forum Excel General
    Replies: 2
    Last Post: 05-25-2007, 09:49 AM
  7. How do I change the size of font/display in a dropdown list I've .
    By Steve in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2005, 03:06 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