简体   繁体   English

根据列中的值填充其他工作表中的excel单元格值

[英]Populate excel cell value from a different sheet based on value in a column

I have different excel sheets and I am trying to populate values into one sheet from another sheet by comparing the values 我有不同的Excel工作表,并且我正在尝试通过比较值将值从另一工作表填充到一个工作表中

Sheet 1 is like below 表格1如下所示

在此处输入图片说明

Sheet 2 has below columns 表格2的以下栏

在此处输入图片说明

Now if the name is same, I want to populate Email & Mobile to Sheet 1 from Sheet 2 现在,如果名称相同,我想从工作表2填充“电子邮件和手机”到工作表1

I tried using VLOOKUP, but I am not able to get the syntax right. 我尝试使用VLOOKUP,但语法不正确。 Any help is appreciated. 任何帮助表示赞赏。

Hope my question is clear, please feel free to drop in a comment if you need any clarification, thanks 希望我的问题很清楚,如果您需要任何澄清,请随时发表评论,谢谢

for the email: 对于电子邮件:

=vlookup(a2, sheet2!A:C, 2, false)

for the Mobile #: 对于移动电话:

=vlookup(a2, sheet2!A:C, 3, false)

这就是Sheet1的样子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VBA Excel-根据单元格值保护工作表中的列 - VBA Excel - Protect column in a sheet based on a cell value excel-使用一个单元格中的值到另一张工作表中的参考值 - excel - Using the value from one cell to reference value in a different sheet 如何根据另一个工作表中的值填充不同工作表中的单元格,反之亦然 - How to populate a cell in a different sheet based on the value in another sheet and vice versa Excel VBA 根据第二列单元格值将列从一张表复制到另一张表 - Excel VBA to Copy Column from one sheet to another based on a second columns cell value 根据单元格值从 Excel 工作表中提取数据 - Extracting data from an Excel sheet based on cell value excel根据另一个单元格值从另一个工作表中提取数据 - excel pulling data from another sheet based on another cell value 根据单元格值将行从一个 Excel 工作表复制到另一个 - Copying rows from one Excel sheet to another based on cell value 根据公式中单元格中的值有条件地格式化 Excel 工作表选项卡 - Conditional Formatting an Excel Sheet Tab Based on Value in a Cell From a Formula Excel-根据单元格的值填充行 - Excel - Populate a row based on value of a cell Excel宏根据第一张工作表中的特定单元格值在其他工作表中添加单元格值 - Excel macro add a cell value in a different worksheet based on a specific cell value in the first sheet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM