跳到主要内容

从另一个工作表或工作簿中查找值

如果您知道如何使用VLOOKUP函数在工作表中搜索值,那么其他工作表或工作簿中的vlookup值对您来说就不是问题。


来自另一个工作表的VLOOKUP值

本节将向您展示如何在Excel中从另一个工作表中查找值。

通用公式

=VLOOKUP(lookup_value,sheet_range,col_index,[range_lookup])

参数

  • Lookup_value (必填):您要搜索的值。 它必须在sheet_range的第一列中。
  • Sheet_range (必需):某个工作表中包含两个或更多列的值,其中查找值列和结果值列位于其中。
  • Col_index (必需):table_array的特定列号(它是整数),您将从中返回匹配的值。
  • Range_lookup (可选):这是一个逻辑值,它确定此VLOOKUP函数将返回完全匹配还是近似匹配。

点击了解更多有关 VLOOKUP功能.

在这种情况下,我需要在名为的工作表的B3:C14范围内查找值 “销售”, 并在 总结 工作表。

1.在“摘要”工作表中选择一个空白单元格,将以下公式复制到其中,然后按 输入 键。

=VLOOKUP($B5,Sales!B3:C14,2,0)

笔记:

  • B5 是包含您要搜索的值的单元格引用;
  • 销售 是您要从中查找值的工作表名称;
  • B3:C14 该范围包含查找值列和结果值列;
  • 2 表示结果值位于范围B3:C14的第二列上;
  • 0 这意味着VLOOKUP函数将返回完全匹配项。 如果找不到精确的匹配值,它将返回#N / A错误值。

2.然后拖动 填充手柄 下来获得所有结果。


来自另一个工作簿的VLOOKUP值

假设有一个wokbook名称为“ Sales report”,要直接在此工作簿的特定工作表中查找值(即使已关闭),请执行以下操作。

通用公式

=VLOOKUP(lookup_value,[workbook]sheet!range,col_index,[range_lookup])

参数

  • Lookup_value (必填):您要搜索的值。 它必须在sheet_range的第一列中。
  • [workbook]sheet!range (必需):特定工作簿中工作表的单元格范围,其中包含查找值列和结果值列所在的两个或更多列。
  • Col_index (必需):table_array的特定列号(它是整数),您将从中返回匹配的值。
  • Range_lookup (可选):这是一个逻辑值,它确定此VLOOKUP函数将返回完全匹配还是近似匹配。

1.选择一个空白单元格,将以下公式复制到其中,然后按 输入 键。

=VLOOKUP($B5,'[Sales report.xlsx]Sales'!B3:C14,2,0)

请注意: 如果找不到精确匹配的值,则VLOOKUP函数将返回#N / A错误值。

2.然后向下拖动“填充手柄”以将公式应用于其他单元格以获取所有结果。 看截图:


相关功能

VLOOKUP功能
Excel VLOOKUP函数通过在表的第一列上进行匹配来搜索值,并从同一行中的特定列返回相应的值。


相关公式

Vlookup公式–运费计算器
本文提供了详细的步骤,以根据Excel中项目的指定重量计算运输成本。
点击了解更多...

具有动态工作表名称的多个工作表中的查找值
在许多情况下,您可能需要跨多个工作表收集数据以进行汇总。 本文为您提供了使用动态工作表名称轻松地在工作表中查找特定值的方法。
点击了解更多...

Vlookup并在多列中返回匹配的值
通常,应用Vlookup函数只能从一列返回匹配的值。 有时,您可能需要根据条件从多个列中提取匹配的值。 这是您的解决方案。
点击了解更多...

Vlookup在一个单元格中返回多个值
通常,应用VLOOKUP函数时,如果存在多个符合条件的值,则只能获取第一个的结果。 如果要返回所有匹配的结果并将它们全部显示在一个单元格中,如何实现?
点击了解更多...

Vlookup并返回匹配值的整个行
通常,使用vlookup函数只能返回同一行中特定列的结果。 本文将向您展示如何根据特定条件返回整行数据。
点击了解更多...


最佳办公效率工具

Kutools for Excel-帮助您从人群中脱颖而出

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项  |  删除空白行  |  合并列或单元格而不丢失数据  |  不使用公式进行四舍五入 ...
超级VLookup: 多重标准  |  多重价值  |  跨多页  |  模糊查询...
副词。 下拉列表: 简易下拉列表  |  依赖下拉列表  |  多选下拉列表...
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  将列与 选择相同和不同的单元格 ...
特色功能: 网格焦点  |  设计图  |  大方程式酒吧  |  工作簿和工作表管理器 | 资源库 (自动文本)  |  日期选择器  |  合并工作表  |  加密/解密单元格  |  按列表发送电子邮件  |  超级筛选  |  特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符 ...)  |  50+ 图表 类型 (甘特图 ...)  |  40+ 实用 公式 (根据生日计算年龄 ...)  |  19 插入 工具 (插入二维码, 从路径插入图片 ...)  |  12 转化 工具 (小写金额转大写, 货币兑换 ...)  |  7 合并与拆分 工具 (高级组合行, 拆分 Excel 单元格 ...)  |  ... 和更多

Kutools for Excel 拥有超过 300 个功能, 确保只需点击一下即可获得您所需要的...

产品描述


Office 选项卡 - 在 Microsoft Office(包括 Excel)中启用选项卡式阅读和编辑

  • 一秒钟即可在数十个打开的文档之间切换!
  • 每天为您减少数百次鼠标单击,告别鼠标手。
  • 查看和编辑多个文档时,可将您的工作效率提高50%。
  • 为 Office(包括 Excel)带来高效的选项卡,就像 Chrome、Edge 和 Firefox 一样。
Comments (3)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What does this mean: "Sheet_range (required): A range of cells in a certain worksheet which contains two or more columns where the lookup value column and the result value column locating."?
By "locating", do you mean "are located"?
Would you please rephrase this sentence.

Also, after reading this it is still not clear to me how to do the following:
tell Excel to look in another sheet for a specific pair of values matching two cells in the current sheet, and copy to the current sheet a value of values in another cell.

Specifically, I've got a long list of names on sheet A, and I want to copy all their phone numbers and email addresses from Sheet B, to Sheet A
This comment was minimized by the moderator on the site
What does this mean: "Sheet_range (required): A range of cells in a certain worksheet which contains two or more columns where the lookup value column and the result value column locating."?
By "locating", do you mean "are located"?
Would you please rephrase this sentence.

Also, after reading this it is still not clear to me how to do the following:
tell Excel to look in another sheet for a specific pair of values matching two cells in the current sheet, and copy to the current sheet a value of values in another cell.

Specifically, I've got a long list of names on sheet A, and I want to copy all their phone numbers and email addresses from Sheet B, to Sheet A
This comment was minimized by the moderator on the site
What does this mean: "Sheet_range (required): A range of cells in a certain worksheet which contains two or more columns where the lookup value column and the result value column locating."?By "locating", do you mean "are located"?Would you please rephrase this sentence.
Also, after reading this it is still not clear to me how to do the following:tell Excel to look in another sheet for a specific pair of values matching two cells in the current sheet, and copy to the current sheet a value of values in another cell.
Specifically, I've got a long list of names on sheet A, and I want to copy all their phone numbers and email addresses from Sheet B, to Sheet A
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations