【问题标题】:Excel indexmatch, vlookupExcel 索引匹配,vlookup
【发布时间】:2015-10-28 18:39:01
【问题描述】:

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

                      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

【问题讨论】:

    标签: excel indexing match vlookup


    【解决方案1】:

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

    如果我理解正确,您可以按照以下方式进行设置。使用这个索引/匹配公式(伪公式):

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

    看起来像这样:

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

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

    【讨论】:

      猜你喜欢
      • 2017-06-26
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多