Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel索引匹配,vlookup_Excel_Indexing_Match_Vlookup - Fatal编程技术网

Excel索引匹配,vlookup

Excel索引匹配,vlookup,excel,indexing,match,vlookup,Excel,Indexing,Match,Vlookup,我在一张桌子上放了几年的假日日历。有人能帮忙吗?如何按周排列这些数据,并按周显示假日?我想在其他工作表中引用这些数据,因此以这种方式安排将有助于我在其他工作表中使用公式。我希望数据是:col.A具有周数和列B显示第一年的假日,col.C显示第二年的假日,等等 Fiscal Week 2015 2014 2013 2012 Valentine's Day 2 2 2 3

我在一张桌子上放了几年的假日日历。有人能帮忙吗?如何按周排列这些数据,并按周显示假日?我想在其他工作表中引用这些数据,因此以这种方式安排将有助于我在其他工作表中使用公式。我希望数据是:
col.A
具有
周数
列B
显示
第一年的假日
col.C
显示
第二年的假日
,等等

                      Fiscal Week           
                2015    2014    2013    2012
Valentine's Day  2  2   2   3
President's Day 3   3   3   4
St. Patrick's Day   7   7   7   7
Easter  10  12  9   11
Mother's Day    15  15  15  16
Memorial Day    17  17  17  18
Flag Day    20  19  19  20
Father's Day    21  20  20  21
Independence Day    22  22  22  23
Labor Day   32  31  31  32
Columbus Day    37  37  37  37
Thanksgiving    43  43  43  43
Christmas   47  47  47  48
New Year's Day  48  48  48  49
ML King Day 51  51  51  52

还不太清楚第一年是什么,所以我假设是2015年,第二年是2014年,等等

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

=Iferror(索引([holiday names range]、匹配([week number]、[2015年的周数在您的表格中]、0))、“”)

看起来是这样的:

=IFERROR(索引($A$3:$A$17,匹配($H3,B$3:B$17,0)),“”)
,在周数旁边的单元格中)

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