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

VLOOKUP with MATCH practice: pick the month column from an input cell

  • Intermedio
  • ~7 min
  • VLOOKUP

Testo dell’esercizio in inglese

The monthly KPI table for 2026 has 6 metrics in rows 2–7 (Revenue, Orders, New customers, Refunds, Marketing spend, Net profit) and the twelve months Jan–Dec across columns B to M. Management wants a small lookup box: type a KPI in B10 and a month in B11, read the value in B12. VLOOKUP finds the KPI row, but its column number must change with the month — let MATCH work it out from the header row instead of hard-coding it.

Cosa devi fare

  1. 1Click B12 and start with the row lookup: =VLOOKUP(B10,$A$2:$M$7, — the KPI name is in column A, so it can be the first column of the table.
  2. 2For the column number, type MATCH(B11,$A$1:$M$1,0) — MATCH returns the position of the month in the header row (Jan is 2 because column A holds "KPI").
  3. 3Close with ,FALSE) and press Enter: the whole formula is =VLOOKUP(B10,$A$2:$M$7,MATCH(B11,$A$1:$M$1,0),FALSE).
  4. 4Test it: change B11 to Nov and B10 to Net profit — B12 must follow both changes without editing the formula.

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 verificatoIn B12, return the value of the KPI named in B10 for the month in B11: look up the KPI row in A2:M7 and use MATCH on the header row A1:M1 to pick the month column.

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

  • B12=VLOOKUP(B10,$A$2:$M$7,MATCH(B11,$A$1:$M$1,0),FALSE)

MATCH(B11,$A$1:$M$1,0) scans the header row for the month and returns its position — "Jul" is the 8th cell of A1:M1 — and that number becomes VLOOKUP's column argument. VLOOKUP then finds the KPI row by its name in column A and returns the cell in that column. Because both the row and the column are looked up from the input cells, the box answers any KPI-and-month combination without touching the formula.

Pitfall 1: MATCH must run over a range that starts at the same column as the VLOOKUP table (A1:M1 for a table starting in A); running it over B1:M1 returns a position that is one too small and silently gives the previous month. Pitfall 2: the third argument of MATCH must be 0 for an exact match; with it omitted MATCH assumes the months are sorted alphabetically and returns nonsense. Pitfall 3: month names must match the header exactly — "July" will not find "Jul"; a data-validation list on the input cell removes the problem. Alternatives: =INDEX($B$2:$M$7,MATCH(B10,$A$2:$A$7,0),MATCH(B11,$B$1:$M$1,0)) is the two-way INDEX/MATCH form; =HLOOKUP(B11,$B$1:$M$7,MATCH(B10,$A$1:$A$7,0),FALSE) flips the roles; in 365, =XLOOKUP(B11,$B$1:$M$1,XLOOKUP(B10,$A$2:$A$7,$B$2:$M$7)) nests two XLOOKUPs. Design note: VLOOKUP + MATCH is also how you make a lookup survive inserted columns — the column number is recomputed from the header every time.

Altri metodi validi

  • =INDEX($B$2:$M$7,MATCH(B10,$A$2:$A$7,0),MATCH(B11,$B$1:$M$1,0)) — INDEX with two MATCH calls
  • =HLOOKUP(B11,$B$1:$M$7,MATCH(B10,$A$1:$A$7,0),FALSE) — HLOOKUP finds the month column, MATCH supplies the row number
  • =VLOOKUP(B10,$A$2:$M$7,MATCH(B11,$B$1:$M$1,0)+1,FALSE) — MATCH over B1:M1 needs +1 to account for the KPI column

Errori comuni

Hard-coding the column: =VLOOKUP(B10,$A$2:$M$7,8,FALSE) shows the right number for Jul and keeps showing Jul after the month in B11 is changed to Nov — the grader changes the month and expects the value to follow.

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.

Esercizi correlati

  • Two-way lookup in a matrixEsperto, ~8 min
  • Pull the unit price with VLOOKUP (exact match)Principiante, ~5 min
  • INDEX and MATCH exact lookupIntermedio, ~6 min
  • Replace VLOOKUP with XLOOKUPIntermedio, ~6 min

Guida alla funzione

Documentazione ufficiale

Esercizio successivo

Replace VLOOKUP with XLOOKUP