Pular para o conteúdo
GridBelt
  • Teste de Excel
  • Prática
  • Programas
  • Preços
Entrar
Começar o teste gratuito
  • Teste de Excel
  • Prática
  • Programas
  • Preços
EntrarCriar conta
Começar o teste gratuito
GridBelt

Pratique Excel no seu navegador.

Teste de Excel

  • Nível 1: Iniciante
  • Nível 2: Intermediário
  • Nível 3: Avançado
  • Teste de Excel em 7 dias
  • Ranking
  • Teste de Excel para entrevista
  • Avaliação de Excel da Indeed

Prática

  • Todos os exercícios
  • Programas
  • Para iniciantes

Guias

  • Fórmulas do Excel
  • Atalhos do Excel

Empresa

  • Sobre nós
  • Preços
  • Como corrigimos

© GridBelt. Todos os direitos reservados.

  • Política de Privacidade
  • Termos de Uso
  • Política de Reembolso

Excel é uma marca comercial da Microsoft Corporation. Indeed, TestGorilla, SHL e outras marcas pertencem aos seus respectivos proprietários. O GridBelt é um site de prática independente e não tem afiliação com Microsoft, TestGorilla, SHL ou Indeed, nem é endossado ou patrocinado por eles.

  1. Prática
  2. /
  3. INDEX and MATCH

INDEX MATCH MATCH practice: two-way lookup in a sales matrix

  • Avançado
  • ~8 min
  • INDEX and MATCH

Enunciado em inglês

The 2026 sales matrix has the twelve months down column A and 8 regions across row 1 — 96 cells of monthly sales. Management wants to type a month in B16 and a region in B17 and read the matching sales figure in B18. Neither VLOOKUP nor HLOOKUP alone can do this: the row and the column both come from inputs, so INDEX needs two MATCH functions, one for each axis.

O que você precisa fazer

  1. 1Click B18 and type =INDEX($B$2:$I$13, — the matrix of numbers without its labels is the range INDEX will read from.
  2. 2Add the row number: MATCH(B16,$A$2:$A$13,0) finds the month's position in column A (Aug is 8).
  3. 3Add the column number: MATCH(B17,$B$1:$I$1,0) finds the region's position in row 1. Close the bracket: =INDEX($B$2:$I$13,MATCH(B16,$A$2:$A$13,0),MATCH(B17,$B$1:$I$1,0)).
  4. 4Press Enter, then change B16 to Mar and B17 to Pacific Northwest — B18 must follow each change.

Células de resposta

Correção

Digite sua fórmula na grade, pressione Enter e depois clique em Verificar. Avaliamos o valor de cada célula de resposta e a fórmula por trás dele.

Tarefas

  1. Não verificadoIn B18, use INDEX with two MATCH functions to return the sales for the month in B16 (matched in A2:A13) and the region in B17 (matched in B1:I1) from the matrix B2:I13.

Recomendamos um computador para as tarefas de planilha. A planilha rola dentro desta caixa.

StartInsertFormulasDataView
A1fxPreparando sua pasta de trabalho…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Digite sua fórmula na planilha e depois verifique.

Sobre este exercício

Um conjunto de dados de 17 linhas em uma planilha, uma célula de resposta, cerca de 8 minutos. Corrigido no seu navegador: o valor e a fórmula por trás dele, com feedback que mostra o que corrigir.

Como resolver

  • B18=INDEX($B$2:$I$13,MATCH(B16,$A$2:$A$13,0),MATCH(B17,$B$1:$I$1,0))

INDEX(range, row, column) returns the cell at a given row and column position inside the range — here the 8th row and the 5th column of $B$2:$I$13, which is cell F9. The two MATCH functions supply those positions from the labels: one searches the month names in column A, the other the region names in row 1, each with 0 for an exact match. Because every part is looked up, the same formula serves all 96 combinations without being edited.

Pitfall 1: the three ranges must line up — the matrix starts at B2, so the month MATCH must start at A2 and the region MATCH at B1; a MATCH over A1:A13 is one position too large and returns the next month's row. Pitfall 2: labels must match exactly: "Pacific NW" will not find "Pacific Northwest" and MATCH returns #N/A; data-validation lists on the input cells prevent typos. Pitfall 3: a hard-coded position (=INDEX($B$2:$I$13,8,MATCH(…))) looks right until the month input changes — exactly what the grader tests. Alternatives: =VLOOKUP(B16,$A$2:$I$13,MATCH(B17,$A$1:$I$1,0),FALSE) uses VLOOKUP for the row and MATCH for the column; =SUMPRODUCT(($A$2:$A$13=B16)*($B$1:$I$1=B17)*$B$2:$I$13) multiplies two boolean masks by the matrix; in 365, =XLOOKUP(B17,$B$1:$I$1,XLOOKUP(B16,$A$2:$A$13,$B$2:$I$13)) nests two XLOOKUPs (the inner one returns a whole row). Modeling note: two-way lookups are how dashboards read rate cards, price grids and budget matrices; INDEX with a 0 as row or column even returns an entire row or column for charts and spills.

Outras formas que funcionam

  • =VLOOKUP(B16,$A$2:$I$13,MATCH(B17,$A$1:$I$1,0),FALSE) — VLOOKUP for the row, MATCH for the column (not accepted here: this task practices INDEX with two MATCH functions)
  • =INDEX($A$1:$I$13,MATCH(B16,$A$1:$A$13,0),MATCH(B17,$A$1:$I$1,0)) — INDEX over the whole block including labels; both MATCH ranges then start at A1
  • =SUMPRODUCT(($A$2:$A$13=B16)*($B$1:$I$1=B17)*$B$2:$I$13) — boolean-mask alternative, no INDEX (not accepted here)

Erros comuns

Mixing up the order of INDEX's arguments: =INDEX($B$2:$I$13,MATCH(B17,$B$1:$I$1,0),MATCH(B16,$A$2:$A$13,0)) feeds the region position as the row number and returns a value from the wrong cell — INDEX wants row first, then column.

Como corrigimos

Qualquer fórmula que produza o resultado certo é aceita, a menos que a tarefa cite uma função: nesse caso, outra função vale metade da pontuação. Comparamos os valores com uma pequena tolerância e ignoramos maiúsculas e espaços no texto. Um número certo digitado à mão em vez de uma fórmula vale metade da pontuação. Tarefas com várias células valem a pontuação integral com 100% das células certas e metade a partir de 50%. Quando faz diferença, também mudamos uma célula de entrada em uma cópia da sua planilha e verificamos se sua fórmula acompanha.

Respostas calculadas com as regras do Excel 365 e verificadas no nosso corretor em 16 de novembro de 2026. Autor: GridBelt team.

Nestes programas

  • Excel test in 7 days, Plano do nível 3Dia 5
  • Excel for Data AnalystsDia 9
  • Excel for Sales and MarketingDia 8

Exercícios relacionados

  • INDEX and MATCH exact lookupIntermediário, ~6 min
  • Pick the month column with MATCHIntermediário, ~7 min
  • Last order date per customerAvançado, ~10 min
  • Two-criteria lookup (product and region)Avançado, ~10 min

Referência da função

Documentação oficial

Próximo exercício

Last order date per customer