+ Reply to Thread
Results 1 to 4 of 4

Vlookup --- Searchable Drop Down Lists

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    Concord, CA
    MS-Off Ver
    2013
    Posts
    55

    Vlookup --- Searchable Drop Down Lists

    I created a table that by entering a customer number, it finds (vlookup) all related information across all my labeled columns (i.e. Customer Name or City or State) with the following formula:

    VLOOKUP($B$7,SNAPDATA,46,FALSE)

    I want to be able to reverse this. By entering the "City" for example I could get all customers who are in that city referenced in my raw data range. I cannot figure out how to make my table return multiple results from this function. I need all customers that are located in that city to come back in one list rather than just one of the customers.

    Thanks

  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
    53,048

    Re: Vlookup --- Searchable Drop Down Lists

    You probably need to use the index/small/if ARRAY. Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Vlookup --- Searchable Drop Down Lists

    Hi

    See the file!!

    This what you looking for?

    Regard
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Vlookup --- Searchable Drop Down Lists

    Is this what you had in mind?

    Data Range
    A
    B
    C
    D
    E
    1
    Customer
    City
    ------
    City
    Customer
    2
    A
    Pittsburgh
    Beaver Falls
    C
    3
    B
    Altoona
    F
    4
    C
    Beaver Falls
    5
    D
    Mars
    6
    E
    Pittsburgh
    7
    F
    Beaver Falls
    8
    G
    Altoona
    9
    H
    Pittsburgh
    10
    I
    Butler


    This array formula** entered in E2:

    =IFERROR(INDEX(A:A,SMALL(IF(B$2:B$10=D$2,ROW(B$2:B$10)),ROWS(E$2:E2))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Searchable dependent drop-down list
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-22-2015, 02:58 PM
  2. Searchable Drop down list
    By Jesscyca in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2014, 11:03 AM
  3. Combo Box - Drop Down searchable drop down.
    By srini_tbcl in forum Excel General
    Replies: 0
    Last Post: 09-19-2014, 08:26 AM
  4. Searchable drop down menu?
    By Christoffer_Col in forum Excel General
    Replies: 1
    Last Post: 03-05-2009, 05:04 AM
  5. searchable dropdown lists
    By pblenis in forum Excel General
    Replies: 2
    Last Post: 07-11-2006, 02:00 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