如何用Excel中的sheet2值填写sheet1上的列表?
在同一Excel文档中考虑以下两个工作表:如何用Excel中的sheet2值填写sheet1上的列表?,excel,excel-formula,Excel,Excel Formula,在同一Excel文档中考虑以下两个工作表: 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
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
我需要用取自sheet2
的值填充单元格sheet1.B2:sheet1.C4
。因此,例如sheet1.row2
必须根据.a01
扩展名填写:
A B C
1 Extension File Type File Description
2 .a01 Compressed ALZip Third Split Archive File
我想我需要VLOOKUP
,但我不知道如何应用它。现在对单元格Sheet1.B2使用=VLOOKUP(A2;Sheet2!A2:C10;1)
,并将其向右和向下拉。我得到的值是错误的!例如,Sheet1.row2
现在看起来像
A B C
1 Extension File Type File Description
2 .a01 Compressed AdLib Tracker 2 File
您希望对B列使用=VLOOKUP(A2,Sheet2!A2:C10,2,FALSE)
,对C列使用=VLOOKUP(A2,Sheet2!A2:C10,3,FALSE)
因为您没有用美元符号“锁定”参考列,所以它在第2页的B列上做了一个VLOOKUP
,而不是a列