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. Sort and filter

Multi-level sort practice: by Region, then Sales descending

  • Iniciante
  • ~4 min
  • Sort and filter

Enunciado em inglês

A 150-row extract of Q3 2026 deals lists the rep, region, product line, number of deals and sales amount in the order the CRM produced them. Regional managers want their own block of rows, with the biggest deals first. Sort the whole table by Region from A to Z and, within each region, by Sales from largest to smallest — two sort levels in one operation, keeping every row intact.

O que você precisa fazer

  1. 1Click any cell inside the table (for example A2). Excel detects the table A1:E151 automatically, including the header row.
  2. 2Open Data → Sort (the large Sort button, not the A→Z arrows). Make sure "My data has headers" is ticked.
  3. 3Level 1: Sort by Region, Order A to Z. Click Add Level. Level 2: Then by Sales, Order Largest to Smallest. Click OK.
  4. 4Check: rows 2 onward are all Central, the first Central row has the highest Central sales, and the East block starts right after the 32 Central rows.

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 verificadoSort the table A1:E151 by Region (A to Z) and then by Sales (largest to smallest), keeping each row's values together.

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 4 minutos. Corrigido no seu navegador: o valor e a fórmula por trás dele, com feedback que mostra o que corrigir.

Como resolver

    A multi-level sort orders rows by the first key and uses the second key only to break ties inside each group: every region becomes a contiguous block (Central, East, North, South, West) and inside a block the rows run from the largest sale to the smallest. Because you sorted the whole table rather than one column, each row keeps its rep, product line and deal count together — the data is rearranged, never changed.

    Pitfall 1: selecting a single column and clicking A→Z sorts that column alone and scrambles the rows (Excel warns "Expand the selection" — always expand). Pitfall 2: a blank row or a merged title above the data stops Excel from detecting the header; untick "My data has headers" or the first data row becomes a header and never moves. Pitfall 3: numbers stored as text sort separately from real numbers ("9,500" after 10,000); convert with VALUE or Text to Columns before sorting. Alternatives: Excel 365 can produce a sorted copy with =SORTBY(A2:E151,B2:B151,1,E2:E151,-1) that updates automatically, leaving the source untouched; for a custom region order (West first), use Sort → Order → Custom List. Undo (Ctrl+Z / ⌘Z) restores the original order only until you save and close — add an index column (1…150) before sorting when the original order matters.

    Outras formas que funcionam

    • =SORTBY(A2:E151,B2:B151,1,E2:E151,-1) — Excel 365 only; a live sorted copy in another area
    • Sort by Sales Largest to Smallest first, then sort by Region A to Z (stable sort: earlier order survives as the tie-breaker) — two single-key sorts in reverse priority
    • Format as Table (Ctrl+T / ⌘T) and use the header drop-downs: Region → Sort A to Z, then Sales → Sort Largest to Smallest in the same reverse order

    Erros comuns

    Adding the levels in the wrong order (Sales first, then Region): the result is ordered by sales overall, and Region only breaks ties between identical amounts, so the regions are not grouped.

    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 15 de novembro de 2026. Autor: GridBelt team.

    Nestes programas

    • Excel for Administrative AssistantsDia 7
    • Learn Excel From ScratchDia 8

    Exercícios relacionados

    • Filter one region and count visible rows with SUBTOTALIniciante, ~6 min
    • Top 3 and bottom 3 reps with LARGE and SMALLIniciante, ~5 min
    • Freeze the header row of a long exportIniciante, ~3 min
    • Count orders, names and blanks (COUNT, COUNTA, COUNTBLANK)Iniciante, ~4 min

    Referência da função

    Documentação oficial

    Próximo exercício

    Filter one region and count visible rows with SUBTOTAL