+ Reply to Thread
Results 1 to 4 of 4

Searching & returning

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    Hungary, Budapest
    MS-Off Ver
    Excel 2003
    Posts
    3

    Searching & returning

    Hello everybody!

    I need a solution for my next problem.

    I have two sheets. In the first one I want to have the data from the second one, like this:

    I write the seraching value in one field of the first sheet:

    f.e.: "car"

    In the second sheet I have the following datas f.e.:

    car new red 3
    car new blue 2
    bycicle old white 10
    bycicle new pink 1

    I want that after typing the "car" or " bycicle " in the field of the first sheet, a little bit under this field, give me all the data's from car, liket this:

    car new red 3
    car new blue 2

    How can I do this?

    Thx in advance!!

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Searching & returning

    A quick question... is the list on sheet 2 alfabetized, or could car appear in row 2 and 40?
    Please take time to read the forum rules

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Searching & returning

    Hi

    Type "car" in B1
    Try this:

    Please Login or Register  to view this content.

    searchval.xlsm
    Last edited by jraj1106; 06-08-2012 at 05:32 AM.
    Click *, if my suggestion helps you. Have a good day!!

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Searching & returning

    A1 type Car

    B1 =IF(ISERROR(INDEX(Sheet2!$B$1:$C$7,SMALL(IF(Sheet2!$A$1:$A$7=$A$1,ROW(Sheet2!$A$1:$A$7)),ROW(1:1)),1)),"",INDEX(Sheet2!$B$1:$C$7,SMALL(IF(Sheet2!$A$1:$A$7=$A$1,ROW(Sheet2!$C$1:$C$7)),ROW(1:1)),1)) with control shift enter and fill down

    C1=IF(ISERROR(INDEX(Sheet2!$B$1:$C$7,SMALL(IF(Sheet2!$A$1:$A$7=$A$1,ROW(Sheet2!$A$1:$A$7)),ROW(1:1)),2)),"",INDEX(Sheet2!$B$1:$C$7,SMALL(IF(Sheet2!$A$1:$A$7=$A$1,ROW(Sheet2!$C$1:$C$7)),ROW(1:1)),2)) with control shift enter and fill down

    ect.....
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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