合并表格和提取名称

时间:2017-12-13 08:54:22

标签: excel join merge vlookup

尽量做到尽可能简洁。我在2张不同的表格上有一张excel表格。

在Sheet1上我有一个带标题的表:Zodiac Element Duality Quadraplicity。

One Sheet2我有一个带有12个十二生肖的人的清单(12列,每个十二生肖下面有一个名单)。

我需要做的是从Element Column中选择“Air”,然后选择该表上的Zodiac(左侧是一列)。然后转到第二个工作表并在名称列表中提取相应的列,因此我有一个具有“Air”属性的人员列表。然后我可以重复其他属性。

所有帮助表示赞赏! 丹尼尔

1 个答案:

答案 0 :(得分:0)

所以这是第1页:

enter image description here

表2可能会更好地构建这样的结构:

enter image description here

使用以下公式:

enter image description here

这使用了一个vlookup(https://support.office.com/en-gb/article/VLOOKUP-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1)来从表格1中获取数据。然后,您可以使用标准过滤按元素查看人员。

但是如果你打算使用过滤器而你正在做vlookups那么“格式化为表格”(https://support.office.com/en-us/article/Format-an-Excel-table-6789619F-C889-495C-99C2-2F971C0E2370)非常有用:

enter image description here

在这里,我已将表格称为第1页“标志”

然后我可以在表2的公式中使用表名(也将其格式化为表格):

enter image description here

然后我可以使用表格功能按元素(https://support.office.com/en-gb/article/Filter-data-in-a-range-or-table-01832226-31b5-4568-8806-38c37dcc180e)过滤:

enter image description here

Fromtehre as teylyn说你可以添加一个数据透视表(根据关系的复杂程度,有或没有动力枢轴 - https://msdn.microsoft.com/en-us/library/gg413497(v=sql.110).aspx

enter image description here

您可以添加切片器以简单地选择各种属性/尺寸(https://support.office.com/en-gb/article/Use-slicers-to-filter-data-249f966b-a9d5-4b0f-b31a-12651785d29d?ui=en-US&rs=en-GB&ad=GB):

enter image description here

注意:如果您使用数据透视表或PowerPivot母鸡,则需要在源表(https://support.office.com/en-ie/article/Refresh-PivotTable-data-6d24cece-a038-468a-8176-8b6568ca9be2)中添加或删除数据时刷新数据透视表。如果你使用了“格式为表”,excel将知道你是否添加或删除了列和行,如果不使用format作为表,则需要更改数据源以在源数据中包含新行或列