Excel 需要将某些项目描述从一个文件复制到另一个文件

Excel Need to copy certain items descriptions from one file to another

我看了看,没有找到任何答案。我有 2 个 spreadsheets。一个有 7,000 个项目,另一个有 2,000 个。我需要将第二个 spreadsheet 中列出的部分的描述从第一个复制到第二个。下面是一个例子。

Item    Description    *other-field*    *other-field*    *other-field*
#8402   example des.   example text     example text     example text     
#0383   example des.   example text     example text     example text     
#8932   example des.   example text     example text     example text     
#9275   example des.   example text     example text     example text     
#8735   example des.   example text     example text     example text     
                             and 7,000 more under

所以这将是 sheet 一个。我需要一个公式来描述 sheet 中列出的项目两个(下面的示例)并将它们从 sheet1 复制到 sheet2.

 Item    Description    *other-field*    *other-field*   
#0383       no des.      example text     example text  
#8735       no des.      example text     example text     
#9275       no des.      example text     example text      
                                 and many more

所以我需要一个公式,从 sheet2 中的 sheet1 中搜索第 1 列,并复制它找到的匹配项的描述。并将描述转移到 sheet2

中的项目

编辑:

一个问题:我的第二个 sheet 在不同的文件上,有没有办法永久传输此信息?因为如果我删除 7,000 列表,我的 2,000 列表上的描述就会消失。再次感谢。

您可以使用 VLOOKUP 函数将 Sheet1 中的值搜索到 Sheet2 中的单元格区域,结果将是该区域第 2 列的匹配值:

Item    Description
#8402   =VLOOKUP(A2,Sheet2!$A:$B,2,FALSE)
#0383   =VLOOKUP(A3,Sheet2!$A:$B,2,FALSE)
#8932   =VLOOKUP(A4,Sheet2!$A:$B,2,FALSE)
#9275   =VLOOKUP(A5,Sheet2!$A:$B,2,FALSE)
#8735   =VLOOKUP(A6,Sheet2!$A:$B,2,FALSE)

如果 Sheet2 在不同的文件中,您必须在公式中使用类似 '[excel.xls]Sheet2'!$A:$B 的内容。它可能因文件路径而异。