【问题标题】:Excel Need to copy certain items descriptions from one file to anotherExcel 需要将某些项目描述从一个文件复制到另一个文件
【发布时间】:2015-02-17 17:00:12
【问题描述】:

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

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

所以这将是第一张。我需要一个公式来描述表二中列出的项目(下面的示例)并将它们从表 1 复制到表 2。

 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

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

编辑:

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

【问题讨论】:

    标签: excel excel-formula copy spreadsheet


    【解决方案1】:

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

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

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

    【讨论】:

    • 好的,谢谢,我意识到如果您复制并粘贴公式,它会自动将“A2”字段更改为它所在的那个。非常适合我需要的东西,非常感谢。上帝保佑你。
    • 一个问题:我的第二张纸在不同的文件上,有没有办法永久传输这些信息?因为如果我删除 7,000 列表,我的 2,000 上的描述就会消失。再次感谢。
    • 对不起,我实际上是通过处理所有描述然后粘贴特殊和粘贴值来解决这个问题的。感谢上帝保佑你。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-22
    • 2012-01-13
    • 1970-01-01
    • 2017-11-16
    相关资源
    最近更新 更多