+ Reply to Thread
Results 1 to 5 of 5

Search against a range of criteria and display whole rows as results

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    SG
    MS-Off Ver
    Excel 2010
    Posts
    5

    Search against a range of criteria and display whole rows as results

    Hi,

    I have a chemical inventory with lots of data, about 10,000 rows, in Sheet 1. I need to search within column B of the inventory in Sheet 1 against several chemicals listed in Sheet 2. If there are matches, the results will display the whole row of the data. The results will be displayed in Sheet 3.

    Please refer to attached file for a sample inventory.

    For example, in sheet 2, the first chemical is "butanol". And in Sheet 1 there is only 1 row (row 10) with this data in Column B. Therefore the information in row 10 will be displayed in Sheet 3.

    The second chemical in sheet 2 will be "ethanol" and there are 5 rows with this match. So information in rows 22 to 26 will be displayed in Sheet 3 below the results for "butanol". The results of the third, fourth, and subsequent chemicals in Sheet 2 are then displayed accordingly below.

    In summary, I have a list of chemicals in Sheet 2 to search against the information in Sheet 1 Column B and the results will be displayed in Sheet 3. Is there a way to do this in Excel 2010?

    Other ways to display the results are also welcome.

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Search against a range of criteria and display whole rows as results

    Will this work?
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search against a range of criteria and display whole rows as results

    If you want a macro solution, let me know.

  4. #4
    Registered User
    Join Date
    04-18-2013
    Location
    SG
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Search against a range of criteria and display whole rows as results

    Quote Originally Posted by Melvinrobb View Post
    Will this work?
    Thanks a lot! This works!

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    SG
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Search against a range of criteria and display whole rows as results

    Quote Originally Posted by AB33 View Post
    If you want a macro solution, let me know.
    Thanks for the offer! The solution by Melvinrobb works!

+ 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