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

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

问题描述

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



我有Table01与列:




  • Group No

  • 名称

  • / li>


我有Table02列:




  • 组号

  • 城市

  • 代码



我已经合并了Table01和amp Table02如Image03所示,但没有命令。



但是,如您所见,组No Column在两个表格中相似。



我需要的是获取Table01和考虑到Group No栏。



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



有没有办法用excel函数做这个?





谢谢!

解决方案

在Sheet2上的第二个图像中,列D到F。



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

  = iferror(vlookup($ A2,Sheet2!$ D $ 1:$ F $ 100,列(A1),false),)
/ pre>

复制横跨。



修改:这里是一张图片。数据分为两页。在Sheet1上,在公式D2中输入公式。然后将公式复制到F2,然后根据需要下拉多行。




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

I've Table01 with the Columns :

  • Group No
  • Name
  • Price

I've Table02 with the columns:

  • Group No
  • City
  • Code

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

But,as you see Group No Column is similar in both tables.

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.

Is there a way to do this with excel functions ?

Thank You!

解决方案

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

In Sheet1, cell D2 use the formula

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

copy across and down.

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天全站免登陆