2013-06-11 223 views
1

考慮同一個Excel文檔中的下列2個工作表:如何使用Excel中的sheet2值填充sheet1上的列表?

sheet1:

 A   B     C 
1 Extension File Type  File Description 
2 .a01 
3 .a1wish 
4 .a2m 

sheet2:

 A   B     C 
1 Extension File Type  File Description 
2 .a   Developer  Static Library 
3 .a00  Compressed  ALZip Second Split Archive File 
4 .a01  Compressed  ALZip Third Split Archive File 
5 .a02  Compressed  ALZip Fourth Split Archive File 
6 .a1wish  Data   Audials Wishlist File 
7 .a26  Game   Atari 2600 ROM 
8 .a2c  3D Image  Alice Object File 
9 .a2l  CAD    ASAP2 ECU Description File 
10 .a2m  Audio   AdLib Tracker 2 File 

我需要填寫的細胞sheet1.B2 : sheet1.C4sheet2拍攝值。因此,例如sheet1.row2將不得不根據.a01擴展填寫:

 A   B     C 
1 Extension File Type  File Description 
2 .a01  Compressed  ALZip Third Split Archive File 

我想我需要VLOOKUP這個,但無法弄清楚如何使用它。現在使用=VLOOKUP(A2;Sheet2!A2:C10;1)作爲單元格Sheet1.B2,並將其拉下。我得到的價值觀,但錯誤的價值觀!例如,Sheet1.row2現在看起來

 A   B     C 
1 Extension File Type  File Description 
2 .a01  Compressed  AdLib Tracker 2 File 

回答

2

你想用=VLOOKUP(A2, Sheet2!A2:C10, 2, FALSE)列B和=VLOOKUP(A2, Sheet2!A2:C10, 3, FALSE)列C.

因爲你沒有「鎖定」您參考列與美元符號,它確實在頁2的B欄上而不是A欄上的VLOOKUP

相關問題