+ Reply to Thread
Results 1 to 2 of 2

Question on comparing two tables and retrieving the corresponding value

  1. #1
    Registered User
    Join Date
    06-02-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question on comparing two tables and retrieving the corresponding value

    Hi,

    I have two sheets in excel. In sheet 1, I have three columns A, B and C. Column A and B are cartesian coordinates (x,y) e.g. (A1, B1) form one cartesian point. For each point (A,B) there is a value in Column C.

    In Sheet 2, I have two columns A and B, they also represent the coordinates (x,y) and Column A and B in sheet 2 are actually subset of Column A and B in sheet 1.

    What I want to do is, make a third column in sheet 2 and retrieve a value of C from sheet 1 that corresponds to (A,B). More elaborately, I want to match the (A,B) of sheet 2 to (A,B) of sheet 1 and retrieve the corresponding C value.

    What formula should I use. Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Question on comparing two tables and retrieving the corresponding value

    If the A,B combinations are unique...

    Sheet2!C2:
    =LOOKUP(2;1/(Sheet1!$A$1:$A$100&"@"&Sheet1!$B$1:$B$100=$A2&"@"&$B2);Sheet1!$C$1:$C$100)

    modify ranges etc as appropriate.

    (above assumes all combinations on Sheet2 are to be located on Sheet1 given they are stated to be a subset thereof)

+ 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