提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何从另一个谷歌表查找匹配值?

假设您现在有以下两个Google工作表文件,您需要从另一个文件中查找一个文件中的匹配值,您是否有完善的解决方案?

使用公式匹配另一个Google表格的匹配值


使用公式匹配另一个Google表格的匹配值


以下公式可以帮助您基于一个关键列提取匹配值,请按照以下方式进行操作:

1。 输入这个公式: =IFERROR(vlookup(A2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1Plv5B3v3VfPtdWSJ4zFM6DKPY0MhcCxiYS0vYrxORHE/edit#gid=543140280","my data!A2:B12"),2,false),) 到您想要查看匹配值的空白单元格中。

注意:在上面的公式中:

  • A2 是您想要查看其匹配值的单元格;
  • https://docs.google.com/spreadsheets/d/1Plv5B3v3VfPtdWSJ4zFM6DKPY0MhcCxiYS0vYrxORHE/edit#gid=543140280 是您要查找的文件地址;
  • 我的数据!A2:B12:是要从中搜索的工作表名称和单元格范围;
  • 2:表示您匹配的值返回的列号。

2。 然后按 输入 获取第一个结果的关键,看截图:

3。 然后选择公式单元格,然后将填充手柄向下拖动到您想要提取匹配值的单元格中,如需要,请参阅截图:


Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能30天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Max · 7 months ago
    Thanks for this! However, this is only working on about half of my items. I have copied the text exactly as it appears and made sure the format type is the same as well. About half of my data is being found, while the other half is empty (due to the iferror formula). has anyone else found this or have a solution?
    • To post as a guest, your comment is unpublished.
      Josh Johnson · 2 months ago
      You'll need to protect the range from changing on drag on the importrange.

      =IFERROR(vlookup(A2,IMPORTRANGE("https://docs.google.com/spreadsheets/d/1Plv5B3v3VfPtdWSJ4zFM6DKPY0MhcCxiYS0vYrxORHE/edit#gid=543140280","my data!$A$2:$B$12"),2,false),)

      without that, as you drag down the formula it will automaticallyl adjust the range. The second-row cell will be A3:B13 next A4:B14 removing possible matching values from your range. You don't really need the $ in front of the column but I leave it in to freeze the exact column in case I move it around.
  • To post as a guest, your comment is unpublished.
    Aj · 1 years ago
    Can someone help please. I am getting #N/A as a result. I have even tried to put in the importrange formula in a blank cell but still no luck. I have also tried using the LINK SHARE url instead of the actual URL.


    Thanks
  • To post as a guest, your comment is unpublished.
    Gaurav Pratap Singh · 1 years ago
    Not working please help.
    getting blank cell as result.
    • To post as a guest, your comment is unpublished.
      P. Xiao · 1 years ago
      Have you granted access for "importrange" part? If not, you need to put formula "=importrange("link, range") in a blank cell first. Then you will have a pop-up window asking you to grant the access. Now, the full formula should work.
      I had exactly the same problem before and found this solution on another website. Hope it works. Good luck.
      • To post as a guest, your comment is unpublished.
        Femke · 3 months ago
        Had the same problem and this solution worked for me too - super, thanks!!
      • To post as a guest, your comment is unpublished.
        Marian · 7 months ago
        Thank you so much. It worked for me too!
      • To post as a guest, your comment is unpublished.
        Vian · 10 months ago
        Wow, very nice of you to share the solution here... Thanx a lot
      • To post as a guest, your comment is unpublished.
        Tom · 1 years ago
        This fixed it for me. Thank you so much! I was tinkering for hours.