+ Reply to Thread
Results 1 to 10 of 10

Search multiple sheets for matches

  1. #1
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Search multiple sheets for matches

    I felt I was almost there with the search worksheet but I was wrong
    The search takes for ever and the info is being displayed in different columns
    At my wits end with this one
    Example attached
    Assistance appreciated
    Attached Files Attached Files

  2. #2
    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 code with attitude

    Try this:

    Please Login or Register  to view this content.
    F5: =SUM(G:G)
    F6: =COUNTA(E:E)-3
    _________________
    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!)

  3. #3
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: Search multiple sheets for matches

    Appreciate the assistance
    Thanks

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Search multiple sheets for matches

    Hi Jerry
    i don't understand this line
    Please Login or Register  to view this content.
    why not this one ?
    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 07-29-2013 at 09:29 AM.
    If solved remember to mark Thread as solved

  5. #5
    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 sheets for matches

    Before beginning, on the Search sheet we clear all the used rows below the first 8 since the top 8 rows are static headers. My code snippet does that.

    Yours would clear column B.

  6. #6
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: Search multiple sheets for matches

    No matter what I do I cannot get this code to work on the test example
    I must be doing something wrong

  7. #7
    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 sheets for matches

    Post your attempt to get it to work and I'll see if I can spot the problem.

  8. #8
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: Search multiple sheets for matches

    Thanks for your response.
    I have attached the file including the code
    You will not there is a Run time error and the data does not agree with the col headings
    e.g. no date etc

    Again assistance appreciated
    Attached Files Attached Files

  9. #9
    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 sheets for matches

    Yes, your macro doesn't work, that's why I replaced it with the one suggested in post #2.

    Also, your column A was hidden making the column headers look like they were off. I've unhidden the column A and attached my macro to your button.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    03-09-2007
    Location
    Australia
    MS-Off Ver
    Office 10
    Posts
    371

    Re: Search multiple sheets for matches

    Many thanks and appreciate your expertise
    I wish I could understand more

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA macros for multiple matches in different sheets
    By pasumpon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2012, 12:33 PM
  2. Replies: 0
    Last Post: 08-11-2012, 03:25 PM
  3. Macro using VLOOKUP with multiple matches between multiple sheets
    By Derrek0204 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2011, 06:20 PM
  4. Search in two sheets, then copy matches to 3rd sheet
    By Carlsbergen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2009, 02:58 AM
  5. Search using a value that can return multiple matches
    By fg4432 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-07-2007, 10:56 PM

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