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

COUNTIFS practice: orders per region and month from 300 rows

  • Intermedio
  • ~7 min
  • COUNTIF and COUNTIFS

Testo dell’esercizio in inglese

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.

Cosa devi fare

  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.

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 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.

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

  • 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.

Altri metodi validi

  • =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

Errori comuni

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.

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 3
  • Learn Excel From ScratchGiorno 11

Esercizi correlati

  • Orders per status with COUNTIFPrincipiante, ~5 min
  • Orders between two datesIntermedio, ~6 min
  • Sales by region and product with SUMIFSIntermedio, ~7 min

Guida alla funzione

Documentazione ufficiale

Esercizio successivo

Orders between two dates