+ Reply to Thread
Results 1 to 7 of 7

Lookup then Search for text string and return multiple entries

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    oxford, uk
    MS-Off Ver
    Excel 2010
    Posts
    9

    Lookup then Search for text string and return multiple entries

    Dear All,

    I have a 3 databases each on different sheets within a work book. Different country, different page.
    On the first page I have set up a search with two drop down boxes.
    The first box lists the country, the second, lists what type of operation the company runs.

    I need a way to select the country in the first drop down box then the type of operation and it then lists all the companies from the 3 databases that fit that criteria.
    Now I don't have a problem with doing that part.

    However the problem comes in the second list box.
    Within the database the type of operation for each company is listed in one single cell. E.G. Survey, Police, Passenger, Charter, Ambulance etc.
    I don't know how to search for a string of text within the formula to then create an index of all matching companies.
    If the type of operation had only one word in it, I don't think it would be too hard but because its listed all in one cell then I've hit a brick wall.

    Also I don't know how to do it over 3 different work sheets.
    I don't want to combine the databases if I can help it. I have more to add.
    I have attached the workbook in case anyone was interested.

    Can anyone see an easier way of completing this task if the database was in a different format?

    All replies appreciated

    T
    Attached Files Attached Files
    Last edited by tnewell2; 09-24-2012 at 11:38 AM.

  2. #2
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Lookup then Search for text string and return multiple entries

    If you have the option of combining the data the Advanced filter function will work great for you.
    In the attached spreadsheet I combined your data, and added a country column and filled it in.

    To get the attached sheet to work goto the combined data sheet, and Choose the Country and opperator you want.
    They are in yellow at the top.

    Then goto the data tab in the ribbon, and choose advanced filter.
    I have already set everything up so you only have to click Ok when the window pops up.

    You have to re-apply the filter after you change the fields your looking for.
    If you change the country, you have to goto data, then advanced filter, and then click ok again.
    It doesnt automatically update.



    <----Please click the star if this helped you.
    Attached Files Attached Files
    http://excelevangelist.blogspot.com/

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Lookup then Search for text string and return multiple entries

    In this version I hid all of the columns that you didnt seem to need to see.

    Follow the same procedure of choose your variables, then click advanced filter, then ok.




    <----Please click the star if this helped you.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-18-2012
    Location
    oxford, uk
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Lookup then Search for text string and return multiple entries

    That's great thanks very much.
    What do I press to make this thread SOLVED?

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Lookup then Search for text string and return multiple entries

    Your welcome.
    <----Please click the star if this helped you.

  6. #6
    Registered User
    Join Date
    09-18-2012
    Location
    oxford, uk
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Lookup then Search for text string and return multiple entries

    OK, Possibly not solved.
    On the surface what you have done is great. However the problem still lies in the multiple criteria in the operations column.

    I created a macro button to search using the Operations and Country yellow boxes, but if the search "passengers" appears as the second value in the list it wont pick it up.
    Does that make sense.

    Each operator has a list of what they can do. ie Freight, Passengers, Survey, Sightseeing etc.
    If im searching for passenger operators, the search will only pick up those values where passengers and the first name in the list.

    Is this an easy fix?

    Tom

  7. #7
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Tx
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Lookup then Search for text string and return multiple entries

    Wrap the search terms in "*" example. *passangers* this will find them all. If your using your drop down lists you can add *'s to all of them

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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