+ Reply to Thread
Results 1 to 6 of 6

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

Hybrid View

bmsjeff How to search multiple... 09-21-2009, 08:09 AM
NBVC Re: How to search multiple... 09-21-2009, 08:17 AM
bmsjeff Re: How to search multiple... 09-21-2009, 08:34 AM
NBVC Re: How to search multiple... 09-21-2009, 09:04 AM
jimbogey Re: How to search multiple... 11-12-2010, 06:30 PM
NBVC Re: How to search multiple... 11-13-2010, 09:45 PM
  1. #1
    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.

  2. #2
    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

  3. #3
    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

    =IF(C2=Search!$A$2,MAX($Z$1:Z1)+1,"")
    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:

    =IF(ROWS($A$6:$A6)>$D$1,"",IF(ISNUMBER(MATCH(ROWS($A$6:$A6),PARTS1!$Z:$Z,0)),INDEX(PARTS1!B:B,MATCH(ROWS($A$6:$A6),PARTS1!$Z:$Z,0)),IF(ISNUMBER(MATCH(ROWS($A$6:$A6),PARTS2!$Z:$Z,0)),INDEX(PARTS2!B:B,MATCH(ROWS($A$6:$A6),PARTS2!$Z:$Z,0)),IF(ISNUMBER(MATCH(ROWS($A$6:$A6),PARTS3!$Z:$Z,0)),INDEX(PARTS3!B:B,MATCH(ROWS($A$6:$A6),PARTS3!$Z:$Z,0)),""))))
    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.

+ 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