+ Reply to Thread
Results 1 to 6 of 6

How to search multiple worksheets and put results in a seperate worksheet.

  1. #1
    Registered User
    Join Date
    09-20-2009
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to search multiple worksheets and put results in a seperate worksheet.

    I have an Excel workbook that has 3 worksheets in it:
    Parts1, Parts2, Parts3
    The columns are:
    Vendor, Part Number, Cost, Retail, Quantity, Location

    I want a 4th. worksheet that I can enter a part number and it will search through the 3 worksheets and display the results in worksheet 4.
    It is possible for their to be multiple results for the same Part Number, but not always. (For example, the same part number can be in multiple Bin Locations.)

    I am a newbie at this, so detailed instructions would be appreciated.

    I have tried using Vlookup, but it does not seem to do what I am looking for.

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

    Re: How to search multiple worksheets and put results in a seperate worksheet.

    Post a sample workbook.. with some parts and how you want the 4th sheet to look.
    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.

  3. #3
    Registered User
    Join Date
    09-20-2009
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to search multiple worksheets and put results in a seperate worksheet.

    Here is the workbook. Parts1 and Parts2 two both are using all 65000 rows.
    Attached Files Attached Files

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

    Re: How to search multiple worksheets and put results in a seperate worksheet.

    See attached for formula based approach.

    In each Parts sheet I added a helper column to count matches to Part number in the Search sheet.

    Formula in Z2 of each sheet is

    Please Login or Register  to view this content.
    copied down

    In each Part sheet after the first, at the top of the Z column is a formula to find the Max number from the previous page to add number of matches in current page on to...

    So in Z1 of PART2 and PART3, there is formula:

    =MAX(PARTS1!Z:Z) and =MAX(PARTS2!Z:Z), respectively.

    Then in the Search page there is a count formula in D1 that shows the maximum number on the last Part3 page...

    =MAX(PARTS3!Z:Z)

    Then, to extract the data, we have formula in A6 of Search page:

    Please Login or Register  to view this content.
    copied down as far as you need and across all required columns.
    Attached Files Attached Files
    Last edited by NBVC; 09-21-2009 at 09:13 AM.

  5. #5
    Registered User
    Join Date
    11-12-2010
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: How to search multiple worksheets and put results in a seperate worksheet.

    I am looking for something that is very similar to this solution, but I need to be able to search an indefinite number of worksheets.

    I am new to this , but I am trying my hand at scripting because I do not think the formula approach will work for my problem.

    Basically I have multiple workbooks that need to be searched and displayed. I was able to run a script that consolidates all workbooks into on each having their own worksheet.

    I now need to figure out how I can search each of these sheets. The first issue is that the number of worksheets and their names may be different each time I run the consolidation script.

    How can I create a script that will perform behave the same as the formula used in this solution but search an indefinite number of sheets with unknown names.

    Thanks
    Jim

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

    Re: How to search multiple worksheets and put results in a seperate worksheet.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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