Search multiple sheets for criteria and paste all matched rows in new sheet
Multi-sheet workbook. Need macro to prompt user for criteria that will be found in column A (Franchise Number) on all sheets, copy the rows where that criteria is met and paste into new sheet.
See dummy example file attached. The same file only has two sheets with a Results sheets.
Re: Search multiple sheets for criteria and paste all matched rows in new sheet
nilem,
What you created is awesome - however, when I look for the criteria F1100, it returns nothing. Also, how will it work with additional sheets, all have the same first column for lookup, but they have different columns of information that they could return. For example:
Sheet one might have columns: Franchise No., FIrst Name, Last Name, Company Name
Sheet two: Franchise No., Purchase Date, Settle Date, Amount
Sheet three: FN (is the same thing as other sheets but abbreviation used), Stock Amt., Purchase Date, Settlement Date
Does that make sense? In essence, column A is the criteria column, but each sheet will ahve varying data to return once it finds that criteria in column A. So the results sheet ends up being like a report for that one Franchise Number.
Re: Search multiple sheets for criteria and paste all matched rows in new sheet
I used the F1100 as a criterion, and the code gave me 27 lines with "F1100".
The macro will work with any number of sheets added.
Do you want the result as a single column? It would be better if you show the desired result in the file.
Bookmarks