+ Reply to Thread
Results 1 to 13 of 13

Search multiple spreadsheets

  1. #1
    Registered User
    Join Date
    06-01-2012
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Search multiple spreadsheets

    Hi. I am trying to figure out how to crearte a search function that will search 12 different spreadsheets and show the results in a 13th sheet. I need to create it in a way that some one could do different searches. The data I have is names and information to go with the name. I want to set up the name so I could search a name and see what pops up under that name. It's important that the different names can be searched. i would have tried this under MS Access, but I don't have access to MS Access. Is this possible? I thought of using autofilter, but that's only good for individual sheets. If my first thought isn't possible, is it possible to create a "live" sheet that will pull ALL the lines from other sheets (as they are added) so I can run autofilter on the "live" sheet?

    Thanks.

    -Dave

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

    Re: Search multiple spreadsheets

    Hi

    From whatever I could undertsand from your explanation I feel its possible...
    Upload a sample sheet with explanation...
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Search multiple spreadsheets

    I thought of using autofilter, but that's only good for individual sheets.
    Not necessarily true if you can accept using a macro.

    If the layout of the 12 sheets are similar one could have a macro that loops through all sheets (assuming they are in the same workbook) and filters the result in a sheet then copy it to the master sheet before it moves on to the next sheet.

    Still as jraj1106 suggest uploading a workbook will give you the best feedback.

    Alf

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search multiple spreadsheets

    I too think this is doable, without a macro, too, but I'm not going to invent a demonstration AND teach you to adapt it, post your workbook showing examples of what you want to see on this 13th sheet as results and I'll show you in that workbook.

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    06-01-2012
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Search multiple spreadsheets

    Here it is. There are 13 sheets in it. One for each month and one 13th labeled "SEARCH" where I want to be able to set up some sort of search function that will pull from all 12 sheets.

    Thanks.

    -Dave
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search multiple spreadsheets

    No data in your sample sheets, no design on your SEARCH sheet demonstrating examples of what you might enter (and where) and what you expect to appear (and where) all manually mocked up to show us...?

    (nudge)(prod)

  7. #7
    Registered User
    Join Date
    06-01-2012
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Search multiple spreadsheets

    OK...so here is one with mock data in the first 4 months. The search page looks just like the rest of them except I want to be able to type in any name (under inmate) and have the search results pull up all corresponding data for that name. Not sure if it can be sone in that format or if I need to change it slightly...
    Attached Files Attached Files

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Search multiple spreadsheets

    would a pivot table across all sheets work for this?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    06-01-2012
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Search multiple spreadsheets

    I have no idea what a pivot table is.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Search multiple spreadsheets

    lol ok (and that was not meant in a bad way either)

    what data will you be entering to do the search on?

  11. #11
    Registered User
    Join Date
    06-01-2012
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Search multiple spreadsheets

    I entered some mock data in the sheets labeled "January," "February," "March," & "April." On the search sheet I have the same subject headers and a search field. I want the search field to reference the column labeled "Inmate" and present the any lines with that name.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Search multiple spreadsheets

    Here you go, no macros, some key columns added to the right on all the sheets to provide some realtime INDEXing, then some INDIRECT formulas on the SEARCH sheet do the rest.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    06-01-2012
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Search multiple spreadsheets

    Thanks. Looks like this will do exactly what I was wanted. I appreciate the help guys! Thanks a bunch!

+ 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