
答案1
如果工作表名为“Sheet1”和“Sheet2”,则在单元格 C2 中输入以下公式:
=VLOOKUP(Sheet1.$B2,Sheet2.$A$2:$G$61,COLUMN()-1,0)
现在将公式拖到 B 列的其余部分。然后将选定的单元格拖到 G 列。
文档:https://help.libreoffice.org/Calc/Spreadsheet_Functions#VLOOKUP
如果工作表名为“Sheet1”和“Sheet2”,则在单元格 C2 中输入以下公式:
=VLOOKUP(Sheet1.$B2,Sheet2.$A$2:$G$61,COLUMN()-1,0)
现在将公式拖到 B 列的其余部分。然后将选定的单元格拖到 G 列。
文档:https://help.libreoffice.org/Calc/Spreadsheet_Functions#VLOOKUP