excel中index函数的使用方法
发布时间:2016-12-01 22:31
Excel中的INDEX函数是用来“返回表或区域中的值”或“对值的引用”。
下面小编教你###怎么在excel中使用index函数:
下面用2个例子来说明数组形式和引用形式用法。
首先介绍###数组形式的使用方法
举例1:在H2单元格中返回数组(D2:F11)中第3行、第3列的值。
如下图所示:

在H2单元格中输入“=INDEX(D2:F11, 3, 3)”, 然后单击“Enter”键:

最后H2单元格中返回的值为“62”,“62”是我们所选区域(D2:F11)的第3行、第3列的值,而不是整个Excel的第3行、第3列的值:

接下来介绍###引用形式的使用方法
举例2:在H2单元格中返回两个数组区域(B2:C11)和(E2:F11)的第二个区域的第2行、第2列的值。

在H2单元格中输入“=INDEX((B2:C11, E2:F11), 2, 2, 2)”, 然后单击“Enter”键:

最后H2单元格中返回的值为“34”,“34”是我们所选区域(B2:C11, E2:F11)的第2个区域(E2:F11)第2行、第2列的值

将第7步中H2单元格中的输入“=INDEX((B2:C11, E2:F11), 2, 2, 2)”改为“=INDEX((B2:C11, E2:F11), 2, 2)”,查看一下省略area_num的结果:

最后H2单元格中返回的值为“教师”,“教师”是我们所选的第1个区域(B2:C11)的第2行、第2列的值,由此可见当省略area_num时,其值默认为1

excel中index函数的使用方法的评论条评论