+ Reply to Thread
Results 1 to 4 of 4

Search Columns from Multiple Sheets If Match Populate Value from 1 of the sheets

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Search Columns from Multiple Sheets If Match Populate Value from 1 of the sheets

    I have 2 sheets in a workbook that look like the example attached. I want to compare the data in column A of each sheet so that if there is a match of county names then column C in sheet 1 is populated with the data for that county from Column B from sheet 2.

    The Counties are not in perfectly matching order and sheet 2 is missing a county.

    This is an extremely poor explanation. But basically I will end up with sheets with housing data for 5 years, 1 year on each sheet. I want to parse those together by county so I can look at the change for each county over the 5 year period. Problem is some of the years are missing data for some of the counties, so I can't just copy and paste.

    Thanks so much in advance!]
    Attached Files Attached Files
    Last edited by kellyjo7; 12-08-2014 at 02:42 PM.

  2. #2
    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
    52,933

    Re: Search Columns from Multiple Sheets If Match Populate Value from 1 of the sheets

    Hi, welcome to the forum

    If I understand you correctly, this should do what you want....
    C2=IFERROR(VLOOKUP($A2,'2012'!$A$2:$B$1847,2,0),"Not Found")
    copied down

    Then copy that to each new column and change the year ref...'2012'! to '2011'! etc and copy that down

    You could also use this instead, and you wont need to change the years, but it could become resource-intense and slow you down...
    C2=IFERROR(VLOOKUP($A2,INDIRECT("'"&LEFT(D$1,4)&"'!$A$2:$B$1847"),2,0),"Not Found")
    copied down and across as needed
    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

  3. #3
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Search Columns from Multiple Sheets If Match Populate Value from 1 of the sheets

    Awesome Thanks!

  4. #4
    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
    52,933

    Re: Search Columns from Multiple Sheets If Match Populate Value from 1 of the sheets

    Glad it worked for you and thanks for the feedback

+ 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. index and match multiple columns on two different sheets
    By Shredstick in forum Excel General
    Replies: 4
    Last Post: 03-18-2014, 05:17 AM
  2. Replies: 8
    Last Post: 11-20-2013, 12:21 AM
  3. Macro to match multiple columns in different sheets.
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-28-2013, 12:05 AM
  4. How to use index match to search for a value from multiple sheets
    By yoyogu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2012, 02:16 AM
  5. Replies: 2
    Last Post: 06-29-2011, 01:36 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