Join two spreadsheets on a common column in Excel or OpenOffice

后端 未结 3 1196
不思量自难忘°
不思量自难忘° 2020-12-08 10:33

I have two CSV files with a common column and I want to \"Join\" the tables together on the common column.

For example: Join \'A\' with \'B\' equals \'Result\'. If

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 10:45

    In Excel, you use VLOOKUP for that.
    Assume you have the data in Table A listed in columns A and B in Excel.
    And the data in Table B list in columns E and F.
    Now, go to the first row in column C and enter:

    =VLOOKUP(A:A,E:F,2,FALSE) 
    

    This tells it to try to match column A with column E, and grab whatever is in the 2nd column near where we found it and place it in column C.
    Now autofill the rest of the rows in column C to match the rest of the data.

提交回复
热议问题