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. COUNTIF and COUNTIFS

COUNTIFS practice: orders per region and month from 300 rows

  • Intermediário
  • ~7 min
  • COUNTIF and COUNTIFS

Enunciado em inglês

The sales operations team pulled 300 orders from July to October 2026. The export carries the order date, a Month column (Jul, Aug, Sep, Oct) and the region (North, South, West). Management wants a month-by-region order count — the kind of table a pivot would give — as live formulas, so it refreshes with the export. The grid is laid out in F1:J4: regions down column F, months across row 1. Fill it with one formula.

O que você precisa fazer

  1. 1Click G2. This cell must count the orders whose region is the label in F2 (North) and whose month is the label in G1 (Jul).
  2. 2Write COUNTIFS as pairs of range, criterion: the Region column D2:D301 against F2, then the Month column C2:C301 against G1.
  3. 3Lock the references for copying: both data ranges fully ($D$2:$D$301, $C$2:$C$301), the region label by column only ($F2) and the month label by row only (G$1). F4 / ⌘T cycles through the $ variants.
  4. 4Press Enter, then fill G2 right to J2 with the fill handle, then select G2:J4 and press Ctrl+D / ⌘D to fill the row down to row 4. The twelve counts must add up to 300. Then click Check.

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 verificadoFill G2:J4 with the number of orders per region (labels in F2:F4) and month (labels in G1:J1) using COUNTIFS over D2:D301 and C2:C301 — one formula with mixed references, copied across the whole grid.

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 300 linhas em uma planilha, uma célula de resposta, cerca de 7 minutos. Corrigido no seu navegador: o valor e a fórmula por trás dele, com feedback que mostra o que corrigir.

Como resolver

  • G2=COUNTIFS($D$2:$D$301,$F2,$C$2:$C$301,G$1)

COUNTIFS counts the rows where every range/criterion pair is satisfied at the same time: region equals the row label and month equals the column label. The mixed references do the rest: $F2 always reads the region in column F of the cell's own row, G$1 always reads the month in row 1 of the cell's own column, and the data ranges are fully locked. One formula therefore fills all twelve cells, and the counts add up to the 300 orders because every order has exactly one region and one month.

Pitfall 1: locking the wrong half (F$2 and $G1) makes the first row and column look right and everything else wrong — check the bottom-right cell's formula after filling. Pitfall 2: the Month column must match the header text exactly ("Jul", not "July" or "07"); when the export has only dates, add two date conditions per month (">="&first day, "<="&last day) or a helper column =TEXT(B2,"mmm"). Pitfall 3: COUNTIF (singular) takes one pair only; typing COUNTIF with two pairs returns a #VALUE! or counts the wrong thing. Alternatives: SUMPRODUCT(($D$2:$D$301=$F2)*($C$2:$C$301=G$1)) is the array form and also works in very old versions; a pivot table gives the same grid in four clicks but does not refresh automatically with a pasted export unless you refresh it. In Excel 365, =COUNTIFS($D$2:$D$301,F2:F4,$C$2:$C$301,G1:J1) in G2 spills the whole 3 × 4 grid from one cell.

Outras formas que funcionam

  • =SUMPRODUCT(($D$2:$D$301=$F2)*($C$2:$C$301=G$1)) — array form, same mixed references
  • =COUNTIFS($C$2:$C$301,G$1,$D$2:$D$301,$F2) — the pairs in the other order
  • =COUNTIFS($D$2:$D$301,F2:F4,$C$2:$C$301,G1:J1) in G2 — Excel 365 only; one spilling formula for the grid

Erros comuns

Filling =COUNTIFS($D$2:$D$301,F2,$C$2:$C$301,G1) across without the mixed $: in H2 the labels slide to G2 (an answer cell) and H1, so the second column onwards counts the wrong things or returns 0.

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 2Dia 3
  • Learn Excel From ScratchDia 11

Exercícios relacionados

  • Orders per status with COUNTIFIniciante, ~5 min
  • Orders between two datesIntermediário, ~6 min
  • Sales by region and product with SUMIFSIntermediário, ~7 min

Referência da função

Documentação oficial

Próximo exercício

Orders between two dates