Excel indexmatch,vlookup

时间:2015-10-28 18:39:02

标签: excel indexing match vlookup

我在一张桌子上有几年假期日历。任何人都可以提供帮助 - 如何按周安排这些数据并显示一周的假期?我想在其他工作表中引用这些数据,因此以这种方式排列将帮助我在其他工作表上使用公式。我希望数据为:col A week numberscolumn B显示holiday year 1col. C显示holiday { {1}}等等。

year 2

1 个答案:

答案 0 :(得分:0)

year 1是什么不太清楚,所以我假设是2015年,year 2是2014年等等。

如果我理解正确的话,你可以在这里设置它。使用此索引/匹配公式(伪造公式):

=Iferror(Index([holiday names range],match([week number],[2015's week numbers in your table],0)),"")

看起来像这样:

enter image description here=IFERROR(INDEX($A$3:$A$17,MATCH($H3,B$3:B$17,0)),""),在周数旁边的单元格中)

然后,您可以拖动公式,匹配的组(在上图中,B3:B17)将在您拖动公式时“滑过”。

相关问题