+ Reply to Thread
Results 1 to 7 of 7

Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sheets

  1. #1
    Registered User
    Join Date
    08-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sheets

    I have an excel file for planning work in the office. Each PM has a worksheet which list projects (each project is a row) with other various data on the project. So there are several worksheets. One of the columns in each sheet is for assigning work (i.e. let's say it contains "Bob" as the assigned person). Same column each sheet. But "Bob" may show up several times each sheet. Now I would like to develop a worksheet for "Bob" that is automatically populated with the project data (again, the data i want is always in the same row as "Bob") from all of the worksheets.

    I've messed around with a combination of the index() and small() function (as an array function) and am successful in returning the data i want (while ignoring that which i don't want), but only from one sheet. Is there anyway to find the data assigned to "Bob" across all sheets and return it onto one sheet, all while ignoring those rows that don't concern "Bob"?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sh

    Hello davidbriansmith,

    Welcome to the ForuM!

    To better illustrate your problem, you should post your workbook. It will make clear what you are referring to in your post. You should also include before and after examples of the data and comments about results you expect.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sh

    Leith,

    I've attached the file. So want i want is the ability to "assign" projects to Bob in both the Dave S. and Tony tabs, and it automatically populate Bob's tab with the project information. The last tab was a previous attempt, but it only works with one PM sheet, not multiple.

    The idea is that I need to go through each PM tab (there will be more than two) and select only those rows (projects) that are assigned to Bob.

    Make sense? Thanks for your help.
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sh

    Hello davidbriansmith,

    I have been looking at the workbook. The biggest problem is the lack of consistency between worksheet layouts. The dates on each sheet, at the very least, start with the same date.

    This problem needs to addressed before any formulas or macros can be successfully applied to the problem. Let me know what you want to do about this issue and we can move forward from there.

  5. #5
    Registered User
    Join Date
    08-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sh

    I've cleaned up the file. The dates all align, and I've made the columns consistent. I apologize, the file I sent was sort of in the middle of construction. I wasn't intending to use the dates directly to reference, just the match up the relative column locations, but however it works is fine.

    I've also gotten rid of the VBA function; it didn't work anyway.

    And finally, the last sheet (ENG-Bob (index-small)) is thrown in as extra. It is a demonstration of what I would like to achieve, except that it only returns results from one PM tab, not all. But it can be used for reference, or ignored if it doesn't help. On that sheet, I have only filled across for the first week. The intention would be to go the entire way across, I just didn't take the time to do it at this point.

    Any ideas on how to get this to work?
    Attached Files Attached Files

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sh

    Hello davidbriansmith,

    The macro below fills in the data on the "ENG" sheets from the "PM" sheets. The attached workbook has the macro installed (Marco1A).
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-17-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to Search for Value Across Multiple Sheets, Value Occur Multiple Times on Sh

    Leith,

    The code you posted works great. I have been able to add a macro to clear the contents and combine the two into one function to update. Thank you so much for your assistance.

+ 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