Vai al contenuto
GridBelt
  • Test Excel
  • Esercizi
  • Programmi
  • Prezzi
Accedi
Inizia il test gratuito
  • Test Excel
  • Esercizi
  • Programmi
  • Prezzi
AccediCrea un account
Inizia il test gratuito
GridBelt

Esercitati con Excel nel tuo browser.

Test Excel

  • Livello 1: Principiante
  • Livello 2: Intermedio
  • Livello 3: Esperto
  • Test Excel in 7 giorni
  • Classifica
  • Test Excel per il colloquio
  • Valutazione Excel di Indeed

Esercizi

  • Tutti gli esercizi
  • Programmi
  • Per principianti

Guide

  • Formule Excel
  • Scorciatoie Excel

Azienda

  • Chi siamo
  • Prezzi
  • Come valutiamo

© GridBelt. Tutti i diritti riservati.

  • Informativa sulla privacy
  • Termini di utilizzo
  • Politica di rimborso

Excel è un marchio di Microsoft Corporation. Indeed, TestGorilla, SHL e gli altri marchi appartengono ai rispettivi proprietari. GridBelt è un sito di esercitazione indipendente e non è affiliato a Microsoft, TestGorilla, SHL o Indeed, né approvato o sponsorizzato da queste società.

  1. Esercizi
  2. /
  3. SUMIF and SUMIFS

SUMIFS practice: sales by region and product from 300 order lines

  • Intermedio
  • ~7 min
  • SUMIF and SUMIFS

Testo dell’esercizio in inglese

The Q3 2026 order export has 300 order lines, each with a region (North, South, East, West), one of three products and the line amount. The sales director wants a region-by-product revenue table — the classic "pivot without a pivot" — built from formulas so it updates when the export is replaced. The grid is laid out in G1:J5: regions down column G, products across row 1. Fill it with a single formula.

Cosa devi fare

  1. 1Click H2. This cell must add the amounts of the lines whose region is the label in G2 (North) and whose product is the label in H1 (Standing desk).
  2. 2Write SUMIFS with the sum range first — E2:E301 — followed by pairs of range, criterion: the Region column C2:C301 against G2, then the Product column D2:D301 against H1.
  3. 3Lock the references for copying: the three data ranges fully ($E$2:$E$301, $C$2:$C$301, $D$2:$D$301), the region label by column only ($G2) and the product label by row only (H$1). F4 / ⌘T cycles through the $ variants.
  4. 4Press Enter, then fill H2 right to J2 with the fill handle, then select H2:J5 and press Ctrl+D / ⌘D to fill the row down to row 5. The twelve cells must add up to the total of column E. Then click Check.

Celle di risposta

Correzione

Scrivi la formula nella griglia, premi Enter, poi Verifica. Valutiamo il valore in ogni cella di risposta e la formula che lo produce.

Attività

  1. Non verificatoFill H2:J5 with the total amount (E2:E301) per region (labels in G2:G5) and product (labels in H1:J1) using SUMIFS — one formula with mixed references, copied across the whole grid (SUMPRODUCT is accepted too).

Consigliato il computer per le attività sul foglio di calcolo. Il foglio scorre all’interno di questo riquadro.

StartInsertFormulasDataView
A1fxPreparazione della cartella di lavoro…
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

Inserisci la formula nel foglio, poi verifica.

Informazioni sull’esercizio

Un set di dati di 300 righe su un foglio, una cella di risposta, circa 7 minuti. Correzione nel tuo browser: il valore e la formula che lo produce, con indicazioni su cosa sistemare.

Come risolverlo

  • H2=SUMIFS($E$2:$E$301,$C$2:$C$301,$G2,$D$2:$D$301,H$1)

SUMIFS adds the cells of the sum range whose row satisfies every range/criterion pair — here region equals the row label and product equals the column label. Unlike SUMIF, the sum range comes first, which is what lets you add as many conditions as you need afterwards. Mixed references make one formula fit all twelve cells: $G2 follows the row, H$1 follows the column, and the three fully locked data ranges never move, so the grid reconciles to the total of column E.

Pitfall 1: SUMIFS is not SUMIF with more arguments — the argument order differs (sum range first), and mixing them up returns 0 or #VALUE!. Pitfall 2: locking the wrong half of a label reference (G$2 or $H1) produces a grid whose first row or first column is right and the rest wrong; check the bottom-right formula after filling. Pitfall 3: criteria ranges must be the same size as the sum range; $C$2:$C$301 against $E$2:$E$300 returns #VALUE!. Alternatives: SUMPRODUCT(($C$2:$C$301=$G2)*($D$2:$D$301=H$1)*$E$2:$E$301) is the array form and works in every version; a pivot table builds the same grid interactively but needs a refresh after each paste; in Excel 365, =SUMIFS($E$2:$E$301,$C$2:$C$301,G2:G5,$D$2:$D$301,H1:J1) spills the whole 4 × 3 grid from one cell. Performance: SUMIFS stops at the referenced range and is fast even on a hundred thousand lines; avoid whole-column references inside SUMPRODUCT, which would evaluate a million rows per cell.

Altri metodi validi

  • =SUMPRODUCT(($C$2:$C$301=$G2)*($D$2:$D$301=H$1)*$E$2:$E$301) — array form, same mixed references
  • =SUMIFS($E$2:$E$301,$D$2:$D$301,H$1,$C$2:$C$301,$G2) — the pairs in the other order
  • =SUMIFS($E$2:$E$301,$C$2:$C$301,G2:G5,$D$2:$D$301,H1:J1) in H2 — Excel 365 only; one spilling formula for the grid

Errori comuni

Filling =SUMIFS($E$2:$E$301,$C$2:$C$301,G2,$D$2:$D$301,H1) across without the mixed $: in I2 the labels slide to H2 (an answer cell) and I1, so the second column onwards adds the wrong lines or returns 0.

Come valutiamo

È accettata qualsiasi formula che produce il risultato giusto, a meno che l’attività non indichi una funzione: in quel caso un’altra funzione vale metà dei punti. Confrontiamo i valori con una piccola tolleranza e ignoriamo maiuscole, minuscole e spazi nel testo. Un numero corretto digitato a mano invece di una formula vale metà dei punti. Le attività su più celle valgono il punteggio pieno con il 100% delle celle giuste, metà dei punti dal 50%. Dove serve, cambiamo anche una cella di input su una copia del tuo foglio e controlliamo che la formula si aggiorni.

Risposte calcolate con le regole di Excel 365 e verificate nel nostro correttore in data 16 novembre 2026. Autore: GridBelt team.

In questi programmi

  • Excel test in 7 days, Piano di livello 2Giorno 4
  • Excel for Data AnalystsGiorno 2
  • Excel for Sales and MarketingGiorno 3

Esercizi correlati

  • Sales by region with SUMIFPrincipiante, ~5 min
  • Orders per region and month with COUNTIFSIntermedio, ~7 min
  • Average and largest deal per rep (AVERAGEIFS, MAXIFS)Intermedio, ~8 min

Guida alla funzione

Documentazione ufficiale

Esercizio successivo

Average and largest deal per rep (AVERAGEIFS, MAXIFS)