+ Reply to Thread
Results 1 to 3 of 3

lookup for multiple instances across various sheets?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    13

    lookup for multiple instances across various sheets?

    Desperate to find help with this one. Hopefully there's a lookup function for this. Here's the scenario: have 3 sheets, 1st sheet is assets, 2nd sheet is liabilities, 3rd sheet I'm looking for the assets and liabilities to parse into it for the specific entity I type in (say in cell A1 of the third sheet). Let's say in case it's Coca-Cola; would love to be able to have the 3rd sheet pull in all instances of Coca-Cola and its entire row of data from the 1st and 2nd sheet (all entities are in column A in the 1st and 2nd sheet; Coca-Cola appears a few time in both the assets and liabilities sheets and would need all instances from both to be brought into the 3rd). So in the occurrence an asset or liability is removed or added, the 3rd sheet will pick up the update accordingly and will always match what's current on the other two sheets. Example workbook below. Thanks in advance to anyone who can help.
    Attached Files Attached Files
    Last edited by finance14; 06-29-2011 at 12:37 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,384

    Re: lookup for multiple instances across various sheets?

    Hi finance14,

    Here is my quick stab at your problem.
    I created a new worksheet called Lists so I could make a dropdown on sheet3 in A1,
    I then made Sheet3 A1 a Validation List to dropdown
    Then put code behind sheet 3 to fire the macro when dropdown changed. See code behind Sheet 3

    Then wrote some quick code to look at sheet 1 and every row in col A that matched, copied it to Sheet3
    Then did the same for Sheet2.

    Code can be cleaner but should work. See if this example gives you a start.

    There are many more ways to do this problem. See Advanced Filters or Auto Filter if the Code is too hard or slow.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-26-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    13

    Thumbs up Re: lookup for multiple instances across various sheets?

    Quote Originally Posted by MarvinP View Post
    Hi finance14,

    Here is my quick stab at your problem.
    I created a new worksheet called Lists so I could make a dropdown on sheet3 in A1,
    I then made Sheet3 A1 a Validation List to dropdown
    Then put code behind sheet 3 to fire the macro when dropdown changed. See code behind Sheet 3

    Then wrote some quick code to look at sheet 1 and every row in col A that matched, copied it to Sheet3
    Then did the same for Sheet2.

    Code can be cleaner but should work. See if this example gives you a start.

    There are many more ways to do this problem. See Advanced Filters or Auto Filter if the Code is too hard or slow.
    Oh you are good, thank you so much. This is plenty for me to work off of. Wow, ace.

+ 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