+ Reply to Thread
Results 1 to 4 of 4

Matching up columns in 2 diff. files

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2003
    Posts
    2

    Matching up columns in 2 diff. files

    Hi

    Hope someone can help me with this.

    In sheet 1 I have column A and B like below. (Actual values are more complex than in example below)
    A B
    1 a
    2 b
    3 c
    4 d

    In sheet 2 I have column A, with same information but not in the same order, and column B which needs to be filled with info from sheet 1.
    A B
    2
    3
    1
    4

    What I need help with is matching up the rows so they have the same information. i.e. 1->a, 2->b and so on.
    (reason I dont just copy+paste is that I want to see an error if there is a spelling mistake)

    -Prox

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Matching up columns in 2 diff. files

    In Sheet2

    =VLOOKUP(A2,Sheet1!$A$2:$B$5,2,FALSE)
    or
    =INDEX(Sheet1!$B$2:$B$6,MATCH(A2,Sheet1!$A$2:$A$5,0))

    Adjust ranges accordingly
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Matching up columns in 2 diff. files

    Try in b1 of sheet2 and copy down.

    =IFERROR(INDEX(Sheet1!$B$1:$B$1000;MATCH(A1;Sheet1!$A$1:$A$1000;0));"")

    Change the semi colons to comma if you have to do this.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    Oslo
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Matching up columns in 2 diff. files

    Thank you very much.

+ 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