根据列中的匹配数据合并两个 Excel 表 [英] Merge two Excel tables Based on matching data in Columns

查看:20
本文介绍了根据列中的匹配数据合并两个 Excel 表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究一个 excel 问题,我需要找到答案,我将在下面解释.

I've been working on a excel problem, that I need to find an answer for I'll explain it below.

我有带有列的 Table01:

I've Table01 with the Columns :

  • 组号
  • 姓名
  • 价格

我有带有列的 Table02:

I've Table02 with the columns:

  • 组号
  • 城市
  • 代码

我已经合并了 Table01 & 的两个表Table02如Image03所示,但无序.

I've merged two tables of Table01 & Table02 as shown in the Image03 , But without order.

但是,如您所见,两个表中的 Group No Column 相似.

我需要的是获取 Table01 & 的匹配行02 考虑组号"列.

What I need is to get the matching rows of Table01 & 02 considering 'Group No' Column.

最终结果将被视为最终图像.

The Final result is to be seen as the final image.

有没有办法用excel函数做到这一点?

Is there a way to do this with excel functions ?

谢谢!

推荐答案

将表格放在 Sheet2 的第二张图片中,D 到 F 列.

Put the table in the second image on Sheet2, columns D to F.

在 Sheet1 中,单元格 D2 使用公式

In Sheet1, cell D2 use the formula

=iferror(vlookup($A2,Sheet2!$D$1:$F$100,column(A1),false),"")

上下复制.

编辑:这是一张图片.数据分两张.在 Sheet1 上,将公式输入到单元格 D2 中.然后将公式复制到 F2,然后根据需要向下复制尽可能多的行.

Edit: here is a picture. The data is in two sheets. On Sheet1, enter the formula into cell D2. Then copy the formula across to F2 and then down as many rows as you need.

这篇关于根据列中的匹配数据合并两个 Excel 表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆