Results 1 to 11 of 11

Pull Data from one sheet to another based on 4 conditions.

Threaded View

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    5

    Pull Data from one sheet to another based on 4 conditions.

    Hi guys,

    I am moving along in my masters project and I am having a problem organizing some data I got dumped with.

    What I have is a 196 x 196 matrix of the worlds countries and the distance between each one. So each Row has a title header of a country and each column has a country and the cells between the two are the distance of said countries.

    On another sheet I have about 10 000 different combinations of dates/years/months ect that I need to populate in order for Stata to work properly.

    Rather than manually enter thse in one by one or copy paste what I would like to do is write a code that would do something like this.

    If on sheet 2 (the combination sheet) A3 = Afghanistain and C3 = China than F3 = The China/Afghanistain intersection (In this case AN3 on the Distance Sheet)

    I am having problems because I can't see to figure out a way to have a program lookup the intersection and give me the China/Afghanistan number based on all the conditions. I am assuming I need to use a matrix lookup of some sort. This way when I do some like Canada/Denmark on the Combination sheet, it will automatically look up and populate the distance from the distance sheet (That being AZ33).

    What steps would I have to take to work towards fixing this?
    Last edited by thorton70; 07-07-2014 at 12:12 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 07-23-2013, 01:17 PM
  2. [SOLVED] VBA Code to Pull data to another spreadsheet based on conditions!
    By mg87 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-16-2013, 02:38 PM
  3. Pull data from one sheet to another based on criteria
    By lowrymike in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2013, 12:53 PM
  4. Pull data from another sheet based on certain criteria
    By steve_sr2 in forum Excel General
    Replies: 1
    Last Post: 02-23-2006, 06:15 AM
  5. [SOLVED] ? how to pull data from another sheet based on value
    By ggodfroy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2005, 12:15 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