+ Reply to Thread
Results 1 to 2 of 2

Lookup multiple rows of data (all data are texts)

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    NI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Lookup multiple rows of data (all data are texts)

    i have sheet with many rows... and in other sheet i need to have list of all rows from data, which has one column the same...
    data is like this:
    name alphanumeric code town street ...
    Adam sjdf30393 London Green st ...
    Adam sjdf30365 Oxford Great st.
    Ian asdf1201 Ascot Race st...
    Dan dfasdf2010 Redding Ring st
    Ian asdf1200 Ascot Bridge st

    Result should have one cell where you have drop down menu with names and then under it should be list of all rows which contain name from that cell

    ex. Adam

    all data:
    Adam sjdf30393 London Green st ...
    Adam sjdf30365 Oxford Great st.

    I dont know how to make it search and list all relevant rows, when there are not numeric data.
    Thank you.
    Last edited by Dasha; 12-10-2010 at 11:07 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lookup multiple rows of data (all data are texts)

    In Sheet1, assuming your raw data is in columns A:E, then in F2 enter:

    =IF(A2=Sheet2!$A$1,COUNT($F$1:F1)+1,"")

    copied down. This indicates which are matches and assumes your dropdown selection is in sheet2!A1

    In Sheet2, assuming your dropdown list is in A1, then in B1:

    =MAX(Sheet1!F:F)

    This gives total match count,

    Then in A2:

    =IF(ROWS($A$1:$A1)>$B$1,"",INDEX(Sheet1!A:A,MATCH(ROWS($A$1:$A1),Sheet1!$F:$F)))

    copied down as far as you want and across as many columns as you need.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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