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. SUMIF and SUMIFS

SUMIF practice: total sales by region from 150 invoices

  • Iniciante
  • ~5 min
  • SUMIF and SUMIFS

Enunciado em inglês

Finance exported the 150 invoices of Q3 2026: one row per invoice with the region (North, South, East, West), the rep and the amount. The regional directors want their quarter's total on a small summary block, and the block must survive the next export without being rebuilt. The four region names are already typed in G2:G5; put each region's total sales next to it.

O que você precisa fazer

  1. 1Click H2. The region for this summary row is in G2 (North); the invoice regions are in C2:C151 and the amounts in E2:E151.
  2. 2Write SUMIF with three arguments: the range to test (C2:C151), the criterion (the cell G2) and the range to add (E2:E151). Lock both ranges with $ (select each and press F4 on Windows, ⌘T on Mac).
  3. 3Press Enter and fill H2 down to H5 (drag the fill handle, or select H2:H5 and press Ctrl+D / ⌘D).
  4. 4The four totals must add up to the sum of column E (select E2:E151 and read the status bar). Then click Check (Ctrl+Enter / ⌘+Return).

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 H2:H5, use SUMIF to total the amounts in E2:E151 for the region named in column G of the same row — one formula in H2, filled down.

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

Como resolver

  • H2=SUMIF($C$2:$C$151,G2,$E$2:$E$151)

SUMIF(range, criterion, sum_range) looks down the first range, and wherever a cell matches the criterion it adds the cell in the same row of the sum range. Here the region column is tested against the label in G2 and the amounts in E2:E151 are added, so one formula filled down gives all four regional totals. The $ signs keep both ranges fixed while the criterion cell moves from G2 to G5.

Pitfall 1: filling =SUMIF(C2:C151,G2,E2:E151) down without $ shifts both ranges by a row per copy; the totals look plausible but no longer add up to the grand total — always reconcile the block against SUM(E2:E151). Pitfall 2: a sum range of a different size or offset from the test range (C2:C151 against E3:E152) silently adds the wrong rows; keep both ranges aligned row for row. Pitfall 3: "North " with a trailing space or "north-east" in the export will not match "North"; SUMIF matching is case-insensitive but otherwise exact unless you use wildcards ("North*"). Alternatives: SUMIFS($E$2:$E$151,$C$2:$C$151,G2) puts the sum range first and scales to more conditions (region and product, two exercises on); SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) is the array form; a pivot table gives the same four numbers but needs a manual refresh after each export. Reporting tip: add =H2/SUM($H$2:$H$5) next to the block for each region's share — the percentage exercise in the Basics track.

Outras formas que funcionam

  • =SUMIFS($E$2:$E$151,$C$2:$C$151,G2) — SUMIFS with one condition; note the sum range comes first (not accepted here, because this task asks for SUMIF)
  • =SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) — array form
  • =SUMIF(C:C,G2,E:E) — whole-column references; acceptable while the columns hold nothing else

Erros comuns

Filling =SUMIF(C2:C151,G2,E2:E151) down without locking the ranges: H3 tests C3:C152 and adds E3:E152, so the second to fourth totals drift and the block no longer reconciles with the grand total.

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 1Dia 4
  • Excel for Administrative AssistantsDia 4
  • Excel for Sales and MarketingDia 1

Exercícios relacionados

  • Total of orders above $500Iniciante, ~4 min
  • Sales by region and product with SUMIFSIntermediário, ~7 min
  • Orders per status with COUNTIFIniciante, ~5 min

Referência da função

Documentação oficial

Próximo exercício

Total of orders above $500