⌨ Sintaxe
INDEX(array,row_num,[column_num])
Argumentos
array
(obrigatório)
— Seleciona a coluna na matriz a partir da qual um valor deverá ser retornado. Se núm_coluna for omitido, núm_linha é obrigatório.
row_num
(obrigatório)
— É o número da coluna em ref de onde será fornecida uma referência.
column_num
(opcional)
— Seleciona um intervalo na referência a partir do qual deve ser retornada a interseção de núm_linha com núm_coluna. A primeira área selecionada ou inserida recebe o número 1, a segunda recebe o número 2 e assim por diante. Se núm_área for omitido, ÍNDICE usará a área 1. Todas as áreas listadas aqui devem estar localizadas em uma única planilha. Se você especificar áreas que não estejam na mesma planilha, isso poderá causar um #VALOR!. #REF!. Se você precisar usar intervalos que estão localizados em planilhas diferentes, é recomendável usar a forma matricial da função ÍNDICE e usar outra função para calcular o intervalo que compõe a matriz. Por exemplo, você poderia usar a função ESCOLHER para calcular o intervalo a ser usado.
reference
(obrigatório)
— A reference to one or more cell ranges. If you are entering a non-adjacent range for the reference, enclose reference in parentheses. If each area in reference contains only one row or column, the row_num or column_num argument, respectively, is optional. For example, for a single row reference, use INDEX(reference,,column_num).
row_num
(obrigatório)
— The number of the row in reference from which to return a reference.
column_num
(opcional)
— The number of the column in reference from which to return a reference.
area_num
(opcional)
— Selects a range in reference from which to return the intersection of row_num and column_num. The first area selected or entered is numbered 1, the second is 2, and so on. If area_num is omitted, INDEX uses area 1. The areas listed here must all be located on one sheet. If you specify areas that are not on the same sheet as each other, it will cause a #VALUE! error. If you need to use ranges that are located on different sheets from each other, it is recommended that you use the array form of the INDEX function, and use another function to calculate the range that makes up the array. For example, you could use the CHOOSE function to calculate which range will be used.