+ Reply to Thread
Results 1 to 3 of 3

need to pull data from another sheet that matches 2 criteria

  1. #1
    Registered User
    Join Date
    02-15-2021
    Location
    Washington
    MS-Off Ver
    MS Office 2019
    Posts
    8

    need to pull data from another sheet that matches 2 criteria

    I need to have excel automatically pull data from the second sheet into the first sheet. I have manually selected the data in column E as an example. I need column E to show GDP per capita for the country in column A and year in column C. Thank you very much!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: need to pull data from another sheet that matches 2 criteria

    See attached for formula. It's an INDEX/MATCH/MATCH formula, used to look up in a matrix using column and row headings. This assumes that the column headings on Data are always of the form

    yyyy [YRyyyy]

    Note that you have duplicate countries in your list so you will get the results for every row for, say, Algeria.

    Gambia is an error because there is no 2006 available, Iraq/2013, Morocco/2011

    Country names must match exactly. Indonesia and Laos did not match because you had an extra space at the end of the country name on Sheet1
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-15-2021
    Location
    Washington
    MS-Off Ver
    MS Office 2019
    Posts
    8

    Re: need to pull data from another sheet that matches 2 criteria

    Thank you, worked perfectly. Also thanks for flagging the inconsistencies due to different years/country names.

+ 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. [SOLVED] copy column data to another sheet if criteria matches
    By Robn02 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-17-2018, 10:09 AM
  2. Copy data to another sheet that matches criteria
    By shmemushi in forum Excel General
    Replies: 7
    Last Post: 11-30-2015, 04:17 PM
  3. [SOLVED] Collecting Data from another Sheet that matches multiple criteria
    By MaeglinBC3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2015, 04:50 PM
  4. Pull data from one sheet to another if a company name matches
    By toddbn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2015, 06:08 PM
  5. Pull data from a specific sheet that matches cell value on Input Sheet
    By vaciaravino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2012, 08:38 PM
  6. Replies: 4
    Last Post: 08-29-2012, 10:32 AM
  7. Replies: 6
    Last Post: 09-12-2011, 12:51 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